|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r77417 - trunk/boost/accumulators/framework/accumulators
From: eric_at_[hidden]
Date: 2012-03-19 16:53:38
Author: eric_niebler
Date: 2012-03-19 16:53:36 EDT (Mon, 19 Mar 2012)
New Revision: 77417
URL: http://svn.boost.org/trac/boost/changeset/77417
Log:
work around for msvc which allows ctor templates to be copy ctors
Text files modified:
trunk/boost/accumulators/framework/accumulators/droppable_accumulator.hpp | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
Modified: trunk/boost/accumulators/framework/accumulators/droppable_accumulator.hpp
==============================================================================
--- trunk/boost/accumulators/framework/accumulators/droppable_accumulator.hpp (original)
+++ trunk/boost/accumulators/framework/accumulators/droppable_accumulator.hpp 2012-03-19 16:53:36 EDT (Mon, 19 Mar 2012)
@@ -115,6 +115,12 @@
{
}
+ 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 @@
: droppable_accumulator::base(args)
{
}
+
+ droppable_accumulator(droppable_accumulator const &that)
+ : droppable_accumulator::base(*static_cast<droppable_accumulator::base const *>(&that))
+ {
+ }
};
//////////////////////////////////////////////////////////////////////////
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk