forked from boostorg/function
Make sure that the cv flags are copied when we copy a reference to a function object. Fixes #4325
[SVN r62665]
This commit is contained in:
1 parent
6902f6f943
commit
c0d4005441
1 file changed
+2
-2
@@ -203,11 +203,11 @@ namespace boost {
|
||||
{
|
||||
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user