mirror of
https://github.com/boostorg/histogram.git
synced 2026-01-30 07:52:11 +00:00
24 lines
564 B
C++
24 lines
564 B
C++
// Copyright 2015-2016 Hans Dembinski
|
|
//
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// (See accompanying file LICENSE_1_0.txt
|
|
// or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
#include <boost/serialization/serialization.hpp>
|
|
#include <boost/archive/binary_oarchive.hpp>
|
|
#include <boost/archive/binary_iarchive.hpp>
|
|
#include <boost/histogram.hpp>
|
|
#include <fstream>
|
|
|
|
void serialize()
|
|
{
|
|
std::fstream fs;
|
|
boost::archive::binary_iarchive bi(fs);
|
|
boost::archive::binary_oarchive bo(fs);
|
|
|
|
boost::histogram::histogram hs;
|
|
|
|
bi & hs;
|
|
bo & hs;
|
|
}
|