Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55313 - sandbox/fmhess/boost/generic_ptr
From: fmhess_at_[hidden]
Date: 2009-07-31 11:56:19


Author: fmhess
Date: 2009-07-31 11:56:18 EDT (Fri, 31 Jul 2009)
New Revision: 55313
URL: http://svn.boost.org/trac/boost/changeset/55313

Log:
Fixed generic_ptr::intrusive move constructor.

Text files modified:
   sandbox/fmhess/boost/generic_ptr/intrusive.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: sandbox/fmhess/boost/generic_ptr/intrusive.hpp
==============================================================================
--- sandbox/fmhess/boost/generic_ptr/intrusive.hpp (original)
+++ sandbox/fmhess/boost/generic_ptr/intrusive.hpp 2009-07-31 11:56:18 EDT (Fri, 31 Jul 2009)
@@ -150,9 +150,9 @@
 
 #if defined( BOOST_HAS_RVALUE_REFS )
 
- intrusive(intrusive && rhs): px( rhs.px )
+ intrusive(intrusive && rhs): px( std::move(rhs.px) )
     {
- detail::set_plain_old_pointer_to_null(px);
+ detail::set_plain_old_pointer_to_null(rhs.px);
     }
 
     intrusive & operator=(intrusive && rhs)


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