|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50655 - sandbox/thread_safe_signals/trunk/boost/signals2
From: fmhess_at_[hidden]
Date: 2009-01-17 12:18:22
Author: fmhess
Date: 2009-01-17 12:18:22 EST (Sat, 17 Jan 2009)
New Revision: 50655
URL: http://svn.boost.org/trac/boost/changeset/50655
Log:
Optimized copying of deconstruct_deleter.
Text files modified:
sandbox/thread_safe_signals/trunk/boost/signals2/deconstruct.hpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Modified: sandbox/thread_safe_signals/trunk/boost/signals2/deconstruct.hpp
==============================================================================
--- sandbox/thread_safe_signals/trunk/boost/signals2/deconstruct.hpp (original)
+++ sandbox/thread_safe_signals/trunk/boost/signals2/deconstruct.hpp 2009-01-17 12:18:22 EST (Sat, 17 Jan 2009)
@@ -69,6 +69,12 @@
{
}
+ // this copy constructor is an optimization: we don't need to copy the storage_ member,
+ // and shouldn't be copying anyways after initialized_ becomes true
+ deconstruct_deleter(const deconstruct_deleter &): initialized_( false )
+ {
+ }
+
~deconstruct_deleter()
{
destroy();
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