Fixed incorrect overload resolution.

Those functions should not be chosen for copying/moving.
This commit is contained in:
Kohei Takahashi
2017-10-14 02:34:44 +09:00
parent 7ec3f1a68f
commit dfe08dec2c
2 changed files with 9 additions and 2 deletions

View File

@ -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);

View File

@ -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)