Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62665 - trunk/boost/function
From: steven_at_[hidden]
Date: 2010-06-09 11:40:49


Author: steven_watanabe
Date: 2010-06-09 11:40:48 EDT (Wed, 09 Jun 2010)
New Revision: 62665
URL: http://svn.boost.org/trac/boost/changeset/62665

Log:
Make sure that the cv flags are copied when we copy a reference to a function object. Fixes #4325
Text files modified:
   trunk/boost/function/function_base.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/function/function_base.hpp
==============================================================================
--- trunk/boost/function/function_base.hpp (original)
+++ trunk/boost/function/function_base.hpp 2010-06-09 11:40:48 EDT (Wed, 09 Jun 2010)
@@ -203,11 +203,11 @@
         {
           switch (op) {
           case clone_functor_tag:
- out_buffer.obj_ref.obj_ptr = in_buffer.obj_ref.obj_ptr;
+ out_buffer.obj_ref = in_buffer.obj_ref;
             return;
 
           case move_functor_tag:
- out_buffer.obj_ref.obj_ptr = in_buffer.obj_ref.obj_ptr;
+ out_buffer.obj_ref = in_buffer.obj_ref;
             in_buffer.obj_ref.obj_ptr = 0;
             return;
 


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