26#include <ql/time/period.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::Period& p,
const unsigned int) {
38 QuantLib::Integer length;
39 QuantLib::TimeUnit units;
40 if (Archive::is_saving::value) {
48 p = QuantLib::Period(length, units);
void serialize(Archive &ar, QuantLib::Date &d, const unsigned int)
Allow for serialization of QuantLib::Date without amending its class (non-intrusive)