Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77469 - in trunk/boost/context: . detail
From: oliver.kowalke_at_[hidden]
Date: 2012-03-22 03:45:01


Author: olli
Date: 2012-03-22 03:45:00 EDT (Thu, 22 Mar 2012)
New Revision: 77469
URL: http://svn.boost.org/trac/boost/changeset/77469

Log:
context: use boost::forward for function pointers in context class

Text files modified:
   trunk/boost/context/context.hpp | 4 ++--
   trunk/boost/context/detail/context_object.hpp | 1 -
   2 files changed, 2 insertions(+), 3 deletions(-)

Modified: trunk/boost/context/context.hpp
==============================================================================
--- trunk/boost/context/context.hpp (original)
+++ trunk/boost/context/context.hpp 2012-03-22 03:45:00 EDT (Thu, 22 Mar 2012)
@@ -45,7 +45,7 @@
     {
         return base_ptr_t(
             new detail::context_object< void(*)(), Allocator >(
- fn, alloc, size, do_unwind, do_return) );
+ boost::forward< void(*)() >( fn), alloc, size, do_unwind, do_return) );
     }
 
     template< typename Allocator >
@@ -55,7 +55,7 @@
         BOOST_ASSERT( nxt);
         return base_ptr_t(
             new detail::context_object< void(*)(), Allocator >(
- fn, alloc, size, do_unwind, nxt.impl_) );
+ boost::forward< void(*)() >( fn), alloc, size, do_unwind, nxt.impl_) );
     }
 
     template< typename Fn, typename Allocator >

Modified: trunk/boost/context/detail/context_object.hpp
==============================================================================
--- trunk/boost/context/detail/context_object.hpp (original)
+++ trunk/boost/context/detail/context_object.hpp 2012-03-22 03:45:00 EDT (Thu, 22 Mar 2012)
@@ -12,7 +12,6 @@
 #include <boost/assert.hpp>
 #include <boost/config.hpp>
 #include <boost/move/move.hpp>
-#include <boost/type_traits/remove_reference.hpp>
 #include <boost/utility/base_from_member.hpp>
 
 #include <boost/context/detail/config.hpp>


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