| 56 | #ifndef BOOST_HISTOGRAM_NO_SERIALIZATION |
| 57 | template <typename T> |
| 58 | void serialization_impl() { |
| 59 | const auto a = prepare(1, T(1)); |
| 60 | std::ostringstream os; |
| 61 | std::string buf; |
| 62 | { |
| 63 | std::ostringstream os; |
| 64 | boost::archive::text_oarchive oa(os); |
| 65 | oa << a; |
| 66 | buf = os.str(); |
| 67 | } |
| 68 | adaptive_storage_type b; |
| 69 | BOOST_TEST(!(a == b)); |
| 70 | { |
| 71 | std::istringstream is(buf); |
| 72 | boost::archive::text_iarchive ia(is); |
| 73 | ia >> b; |
| 74 | } |
| 75 | BOOST_TEST(a == b); |
| 76 | } |
| 77 | |
| 78 | template <> |
| 79 | void serialization_impl<void>() { |