diff options
Diffstat (limited to 'boost/accumulators/statistics/count.hpp')
-rw-r--r-- | boost/accumulators/statistics/count.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/boost/accumulators/statistics/count.hpp b/boost/accumulators/statistics/count.hpp index 6d30b41e26..b83435a30e 100644 --- a/boost/accumulators/statistics/count.hpp +++ b/boost/accumulators/statistics/count.hpp @@ -43,6 +43,13 @@ namespace impl return this->cnt; } + // make this accumulator serializeable + template<class Archive> + void serialize(Archive & ar, const unsigned int file_version) + { + ar & cnt; + } + private: std::size_t cnt; }; |