summaryrefslogtreecommitdiff
path: root/boost/accumulators/statistics/moment.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/accumulators/statistics/moment.hpp')
-rw-r--r--boost/accumulators/statistics/moment.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/boost/accumulators/statistics/moment.hpp b/boost/accumulators/statistics/moment.hpp
index 3dabd47ecf..9ba1e4caaf 100644
--- a/boost/accumulators/statistics/moment.hpp
+++ b/boost/accumulators/statistics/moment.hpp
@@ -75,6 +75,13 @@ namespace impl
return numeric::fdiv(this->sum, count(args));
}
+ // make this accumulator serializeable
+ template<class Archive>
+ void serialize(Archive & ar, const unsigned int file_version)
+ {
+ ar & sum;
+ }
+
private:
Sample sum;
};