mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-25 01:57:15 +02:00
Fixed incorrect overload resolution.
Those functions should not be chosen for copying/moving.
This commit is contained in:
@ -177,7 +177,10 @@ FUSION_HASH if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
|||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
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)
|
operator=(T&& rhs)
|
||||||
{
|
{
|
||||||
vec = BOOST_FUSION_FWD_ELEM(T, rhs);
|
vec = BOOST_FUSION_FWD_ELEM(T, rhs);
|
||||||
|
@ -64,7 +64,11 @@ FUSION_HASH endif
|
|||||||
#if M == 1
|
#if M == 1
|
||||||
explicit
|
explicit
|
||||||
#endif
|
#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)) {}
|
: vec(BOOST_PP_ENUM(M, FUSION_FORWARD_CTOR_FORWARD, arg)) {}
|
||||||
#endif
|
#endif
|
||||||
#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
|
#if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
|
||||||
|
Reference in New Issue
Block a user