Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75646 - trunk/boost/exception
From: emil_at_[hidden]
Date: 2011-11-24 16:07:15


Author: emildotchevski
Date: 2011-11-24 16:07:14 EST (Thu, 24 Nov 2011)
New Revision: 75646
URL: http://svn.boost.org/trac/boost/changeset/75646

Log:
Better fix for the bug fixed by my previous commit.
Text files modified:
   trunk/boost/exception/exception.hpp | 13 +++++++------
   1 files changed, 7 insertions(+), 6 deletions(-)

Modified: trunk/boost/exception/exception.hpp
==============================================================================
--- trunk/boost/exception/exception.hpp (original)
+++ trunk/boost/exception/exception.hpp 2011-11-24 16:07:14 EST (Thu, 24 Nov 2011)
@@ -412,16 +412,17 @@
             public T,
             public clone_base
             {
- public:
-
- explicit
- clone_impl( T const & x ):
+ struct clone_tag { };
+ clone_impl( clone_impl const & x, clone_tag ):
                 T(x)
                 {
                 copy_boost_exception(this,&x);
                 }
 
- clone_impl( clone_impl const & x ):
+ public:
+
+ explicit
+ clone_impl( T const & x ):
                 T(x)
                 {
                 copy_boost_exception(this,&x);
@@ -436,7 +437,7 @@
             clone_base const *
             clone() const
                 {
- return new clone_impl(*this);
+ return new clone_impl(*this,clone_tag());
                 }
 
             void


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