summaryrefslogtreecommitdiff
path: root/boost/accumulators/statistics/weighted_sum.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/accumulators/statistics/weighted_sum.hpp')
-rw-r--r--boost/accumulators/statistics/weighted_sum.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/boost/accumulators/statistics/weighted_sum.hpp b/boost/accumulators/statistics/weighted_sum.hpp
index 27153906d0..41091f8766 100644
--- a/boost/accumulators/statistics/weighted_sum.hpp
+++ b/boost/accumulators/statistics/weighted_sum.hpp
@@ -55,6 +55,13 @@ namespace impl
return this->weighted_sum_;
}
+ // make this accumulator serializeable
+ template<class Archive>
+ void serialize(Archive & ar, const unsigned int file_version)
+ {
+ ar & weighted_sum_;
+ }
+
private:
weighted_sample weighted_sum_;