diff options
Diffstat (limited to 'boost/accumulators/framework/accumulators/droppable_accumulator.hpp')
-rw-r--r-- | boost/accumulators/framework/accumulators/droppable_accumulator.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/boost/accumulators/framework/accumulators/droppable_accumulator.hpp b/boost/accumulators/framework/accumulators/droppable_accumulator.hpp index c0f512ffda..1beed664a3 100644 --- a/boost/accumulators/framework/accumulators/droppable_accumulator.hpp +++ b/boost/accumulators/framework/accumulators/droppable_accumulator.hpp @@ -115,6 +115,12 @@ namespace boost { namespace accumulators { } + droppable_accumulator_base(droppable_accumulator_base const &that) + : Accumulator(*static_cast<Accumulator const *>(&that)) + , ref_count_(that.ref_count_) + { + } + template<typename Args> void operator ()(Args const &args) { @@ -162,6 +168,11 @@ namespace boost { namespace accumulators : droppable_accumulator::base(args) { } + + droppable_accumulator(droppable_accumulator const &that) + : droppable_accumulator::base(*static_cast<typename droppable_accumulator::base const *>(&that)) + { + } }; ////////////////////////////////////////////////////////////////////////// |