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:
Kohei Takahashi
2014-11-25 22:23:55 +09:00
parent 687668c110
commit 9ab7774fd7
15 changed files with 61 additions and 32 deletions

View File

@@ -139,7 +139,7 @@ namespace boost { namespace fusion
BOOST_FUSION_GPU_ENABLED
explicit deque(Head_&& head, Tail_&&... tail)
: base(detail::deque_keyed_values<Head, Tail...>
::forward_(std::forward<Head_>(head), std::forward<Tail_>(tail)...))
::forward_(BOOST_FUSION_FWD_ELEM(Head_, head), BOOST_FUSION_FWD_ELEM(Tail_, tail)...))
{}
#endif
@@ -171,7 +171,7 @@ namespace boost { namespace fusion
BOOST_FUSION_GPU_ENABLED
deque& operator=(T&& rhs)
{
base::operator=(std::forward<T>(rhs));
base::operator=(BOOST_FUSION_FWD_ELEM(T, rhs));
return *this;
}
#endif