...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::serialization::BOOST_DATE_TIME_SPLIT_FREE
// In header: <boost/date_time/gregorian/greg_serialize.hpp> BOOST_DATE_TIME_SPLIT_FREE(::boost::gregorian::date);
Method that does serialization for gregorian::date
– splits to load/save
Dates are serialized into a string for transport and storage. While it would be more efficient to store the internal integer used to manipulate the dates, it is an unstable solution.