Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66237 - sandbox/function/boost/function
From: dsaritz_at_[hidden]
Date: 2010-10-28 14:10:14


Author: psiha
Date: 2010-10-28 14:10:13 EDT (Thu, 28 Oct 2010)
New Revision: 66237
URL: http://svn.boost.org/trac/boost/changeset/66237

Log:
Compilation error fixes.
Text files modified:
   sandbox/function/boost/function/function_base.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: sandbox/function/boost/function/function_base.hpp
==============================================================================
--- sandbox/function/boost/function/function_base.hpp (original)
+++ sandbox/function/boost/function/function_base.hpp 2010-10-28 14:10:13 EDT (Thu, 28 Oct 2010)
@@ -474,7 +474,7 @@
         template <typename T>
         void debug_clear( T & target )
         {
- std::memset( &target, 0, sizeof( target ) );
+ std::memset( boost::addressof( target ), 0, sizeof( target ) );
         }
       #else
         template <typename T> void debug_clear( T & ) {}
@@ -1301,7 +1301,7 @@
       // copying (generic one, through function pointers) and does not use all
       // the type information it can...]...
       typedef typename detail::function::get_functor_manager<FunctionObj, Allocator>::type functor_manager;
- function_base tmp( empty_handler_vtable );
+ function_base tmp( empty_handler_vtable, EmptyHandler() );
       functor_manager::assign( f, tmp.functor_, a );
       tmp.p_vtable_ = &functor_vtable;
       this->swap<EmptyHandler>( tmp, empty_handler_vtable );
@@ -1380,7 +1380,7 @@
     if ( &other == this )
         return;
 
- function_base tmp( empty_handler_vtable );
+ function_base tmp( empty_handler_vtable, EmptyHandler() );
 
     safe_mover<EmptyHandler> my_restorer ( *this, tmp );
 


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