Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards


Function template load

boost::serialization::load — Function to load gregorian::date objects using serialization lib.


// In header: <boost/date_time/gregorian/greg_serialize.hpp>

template<typename Archive> 
  void load(Archive & ar, ::boost::gregorian::date & d, unsigned int);


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.