Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51034 - sandbox/thread_safe_signals/trunk/boost/signals2
From: fmhess_at_[hidden]
Date: 2009-02-05 14:58:17


Author: fmhess
Date: 2009-02-05 14:58:17 EST (Thu, 05 Feb 2009)
New Revision: 51034
URL: http://svn.boost.org/trac/boost/changeset/51034

Log:
Removed obsolete calls to detail::do_postconstruct

Text files modified:
   sandbox/thread_safe_signals/trunk/boost/signals2/deconstruct.hpp | 43 ++++++++++-----------------------------
   1 files changed, 11 insertions(+), 32 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-02-05 14:58:17 EST (Thu, 05 Feb 2009)
@@ -233,8 +233,7 @@
         new( pv ) T();
         pd->set_initialized();
 
- boost::shared_ptr< T > sp( pt, static_cast< T* >( pv ) );
- return postconstructor_invoker<T>(sp);
+ return boost::shared_ptr< T >( pt, static_cast< T* >( pv ) );
     }
 
 #if defined( BOOST_HAS_VARIADIC_TMPL ) && defined( BOOST_HAS_RVALUE_REFS )
@@ -253,9 +252,7 @@
         new( pv ) T( detail::forward<Args>( args )... );
         pd->set_initialized();
 
- boost::shared_ptr< T > retval( pt, static_cast< T* >( pv ) );
- detail::do_postconstruct(retval.get());
- return retval;
+ return boost::shared_ptr< T >( pt, static_cast< T* >( pv ) );
     }
 
 #else
@@ -272,9 +269,7 @@
         new( pv ) T( a1 );
         pd->set_initialized();
 
- boost::shared_ptr< T > retval( pt, static_cast< T* >( pv ) );
- detail::do_postconstruct(retval.get());
- return retval;
+ return boost::shared_ptr< T >( pt, static_cast< T* >( pv ) );
     }
 
     template< class T, class A1, class A2 >
@@ -289,9 +284,7 @@
         new( pv ) T( a1, a2 );
         pd->set_initialized();
 
- boost::shared_ptr< T > retval( pt, static_cast< T* >( pv ) );
- detail::do_postconstruct(retval.get());
- return retval;
+ return boost::shared_ptr< T >( pt, static_cast< T* >( pv ) );
     }
 
     template< class T, class A1, class A2, class A3 >
@@ -306,9 +299,7 @@
         new( pv ) T( a1, a2, a3 );
         pd->set_initialized();
 
- boost::shared_ptr< T > retval( pt, static_cast< T* >( pv ) );
- detail::do_postconstruct(retval.get());
- return retval;
+ return boost::shared_ptr< T >( pt, static_cast< T* >( pv ) );
     }
 
     template< class T, class A1, class A2, class A3, class A4 >
@@ -323,9 +314,7 @@
         new( pv ) T( a1, a2, a3, a4 );
         pd->set_initialized();
 
- boost::shared_ptr< T > retval( pt, static_cast< T* >( pv ) );
- detail::do_postconstruct(retval.get());
- return retval;
+ return boost::shared_ptr< T >( pt, static_cast< T* >( pv ) );
     }
 
     template< class T, class A1, class A2, class A3, class A4, class A5 >
@@ -340,9 +329,7 @@
         new( pv ) T( a1, a2, a3, a4, a5 );
         pd->set_initialized();
 
- boost::shared_ptr< T > retval( pt, static_cast< T* >( pv ) );
- detail::do_postconstruct(retval.get());
- return retval;
+ return boost::shared_ptr< T >( pt, static_cast< T* >( pv ) );
     }
 
     template< class T, class A1, class A2, class A3, class A4, class A5, class A6 >
@@ -357,9 +344,7 @@
         new( pv ) T( a1, a2, a3, a4, a5, a6 );
         pd->set_initialized();
 
- boost::shared_ptr< T > retval( pt, static_cast< T* >( pv ) );
- detail::do_postconstruct(retval.get());
- return retval;
+ return boost::shared_ptr< T >( pt, static_cast< T* >( pv ) );
     }
 
     template< class T, class A1, class A2, class A3, class A4, class A5, class A6, class A7 >
@@ -374,9 +359,7 @@
         new( pv ) T( a1, a2, a3, a4, a5, a6, a7 );
         pd->set_initialized();
 
- boost::shared_ptr< T > retval( pt, static_cast< T* >( pv ) );
- detail::do_postconstruct(retval.get());
- return retval;
+ return boost::shared_ptr< T >( pt, static_cast< T* >( pv ) );
     }
 
     template< class T, class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8 >
@@ -391,9 +374,7 @@
         new( pv ) T( a1, a2, a3, a4, a5, a6, a7, a8 );
         pd->set_initialized();
 
- boost::shared_ptr< T > retval( pt, static_cast< T* >( pv ) );
- detail::do_postconstruct(retval.get());
- return retval;
+ return boost::shared_ptr< T >( pt, static_cast< T* >( pv ) );
     }
 
     template< class T, class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9 >
@@ -408,9 +389,7 @@
         new( pv ) T( a1, a2, a3, a4, a5, a6, a7, a8, a9 );
         pd->set_initialized();
 
- boost::shared_ptr< T > retval( pt, static_cast< T* >( pv ) );
- detail::do_postconstruct(retval.get());
- return retval;
+ return boost::shared_ptr< T >( pt, static_cast< T* >( pv ) );
     }
 
 #endif


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