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