You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The methods in the "greg_weekday" class are defined in both the .cpp and .hpp files, which causes a compilation issue.
For example, the as_short_string method is defined in greg_weekday.cpp as follows:
//! Return a 3-digit English string of the day of the week (e.g., Sun)constchar* greg_weekday::as_short_string() const
{
return short_weekday_names[value_];
}
However, the same method is also defined in the .hpp file as:
//! Return a 3-digit English string of the day of the week (e.g., Sun)constchar* as_short_string() const
{
staticconstchar* const short_weekday_names[]
= {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
return short_weekday_names[value_];
}
The text was updated successfully, but these errors were encountered:
The methods in the "greg_weekday" class are defined in both the .cpp and .hpp files, which causes a compilation issue.
For example, the as_short_string method is defined in greg_weekday.cpp as follows:
However, the same method is also defined in the .hpp file as:
The text was updated successfully, but these errors were encountered: