|
|
|
|
|
|
void add_day(int n);
void
as the return type. Therefore the function does not return anything.Chrono::Date tomorrow = today.add_day(1);
today.add_day
returns to your 'tomorrow' object. However add_day doesn't return anything, so you get this error.
|
|