Basically I'm trying to store a value, map<string, date*=""> m_dates, into a data file. This map uses a string and Date, with a Date class being composed of:</string,>
I get a similar result with m_dates, since it has tm values. Changing a single tm value to a time_t value and back upon restoration isn't too hard, but doing it for this map of classes with multiple tm values doesn't seem feasible.
Basically I'm trying to store a value, map<string, date*=""> m_dates, into a data file. This map uses a string and Date, with a Date class being composed of:</string,>
Because this is a class with tm values and not a single tm value, I don't think converting it to time_t is going to work here.
Is there a way I can simply store the tm values?
As an example.
The result is
'serialize': is not a member of 'tm'
I get a similar result with m_dates, since it has tm values. Changing a single tm value to a time_t value and back upon restoration isn't too hard, but doing it for this map of classes with multiple tm values doesn't seem feasible.
In this case, with m_dates...
I get the error:
'serialize': is not a member of 'std::map<std::string,Schedule::Date *,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>'