Skip to content

Commit

Permalink
Fix wrong usage of boost::move (fixes #53, #82)
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed Jul 23, 2020
1 parent 5bd7870 commit 03035b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/boost/variant/variant.hpp
Expand Up @@ -1018,7 +1018,7 @@ class invoke_visitor
template <typename T>
typename enable_if_c<MoveSemantics && is_same<T, T>::value, result_type>::type internal_visit(T&& operand, int)
{
return visitor_(::boost::move<T>(operand));
return visitor_(::boost::move(operand));
}

//using workaround with is_same<T, T> to prenvent compilation error, because we need to use T in enable_if to make SFINAE work
Expand Down
2 changes: 1 addition & 1 deletion test/Jamfile.v2
Expand Up @@ -56,7 +56,7 @@ test-suite variant
[ run variant_swap_test.cpp ]
[ run auto_visitors.cpp ]
[ run issue42.cpp ]
#[ run issue53.cpp ]
[ run issue53.cpp ]
[ run overload_selection.cpp ]
[ run recursive_wrapper_move_test.cpp ]
[ run variant_over_joint_view_test.cpp ]
Expand Down

0 comments on commit 03035b2

Please sign in to comment.