forked from boostorg/fusion
Replace some usage of std::forward to static_cast.
For more details, See inline comment of include/boost/fusion/support/config.hpp .
This commit is contained in:
@ -41,7 +41,7 @@ namespace boost { namespace fusion
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
pair(pair&& rhs)
|
||||
: second(std::forward<Second>(rhs.second)) {}
|
||||
: second(BOOST_FUSION_FWD_ELEM(Second, rhs.second)) {}
|
||||
|
||||
#endif
|
||||
|
||||
@ -56,7 +56,7 @@ namespace boost { namespace fusion
|
||||
pair(Second2&& val
|
||||
, typename boost::disable_if<is_lvalue_reference<Second2> >::type* /* dummy */ = 0
|
||||
, typename boost::enable_if<is_convertible<Second2, Second> >::type* /*dummy*/ = 0
|
||||
) : second(std::forward<Second>(val)) {}
|
||||
) : second(BOOST_FUSION_FWD_ELEM(Second, val)) {}
|
||||
|
||||
#endif
|
||||
|
||||
@ -84,7 +84,7 @@ namespace boost { namespace fusion
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
pair& operator=(pair&& rhs)
|
||||
{
|
||||
second = std::forward<Second>(rhs.second);
|
||||
second = BOOST_FUSION_FWD_ELEM(Second, rhs.second);
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user