26#include <ql/time/date.hpp>
28#include <boost/archive/binary_iarchive.hpp>
29#include <boost/archive/binary_oarchive.hpp>
32namespace serialization {
37template <
class Archive>
void serialize(Archive& ar, QuantLib::Date& d,
const unsigned int) {
38 QuantLib::Date::serial_type big;
39 if (Archive::is_saving::value) {
41 big = d.serialNumber();
49 d = QuantLib::Date(big);
void serialize(Archive &ar, QuantLib::Date &d, const unsigned int)
Allow for serialization of QuantLib::Date without amending its class (non-intrusive)