forked from boostorg/fusion
Fixed incorrect overload resolution.
Those functions should not be chosen for copying/moving.
This commit is contained in:
1 parent
7ec3f1a68f
commit
dfe08dec2c
2 files changed
+9
-2
No files matched your search
@@ -177,7 +177,10 @@ FUSION_HASH if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
||||
|
||||
template <typename T>
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
vector&
|
||||
typename boost::disable_if_c<
|
||||
boost::is_same<vector const, typename boost::remove_reference<T>::type const>::value
|
||||
, vector&
|
||||
>::type
|
||||
operator=(T&& rhs)
|
||||
{
|
||||
vec = BOOST_FUSION_FWD_ELEM(T, rhs);
|
||||
|
||||
@@ -64,7 +64,11 @@ FUSION_HASH endif
|
||||
#if M == 1
|
||||
explicit
|
||||
#endif
|
||||
vector(BOOST_PP_ENUM_BINARY_PARAMS(M, U, && arg))
|
||||
vector(BOOST_PP_ENUM_BINARY_PARAMS(M, U, && arg)
|
||||
#if M == 1
|
||||
, typename boost::disable_if_c<boost::is_same<vector const, typename boost::remove_reference<U0>::type const>::value, detail::enabler_>::type = detail::enabler
|
||||
#endif
|
||||
)
|
||||
: vec(BOOST_PP_ENUM(M, FUSION_FORWARD_CTOR_FORWARD, arg)) {}
|
||||
#endif
|
||||
#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
|
||||
|
||||
Reference in new issue
Block a user