Remove redundant argument.

This commit is contained in:
Kohei Takahashi
2018-03-14 16:02:07 +09:00
parent 47070610d0
commit 9536909a3a
2 changed files with 9 additions and 11 deletions

View File

@ -50,8 +50,6 @@ namespace boost { namespace fusion
namespace vector_detail
{
struct each_elem {};
template <
typename This, typename T, typename T_, std::size_t Size, bool IsSeq
>
@ -172,14 +170,14 @@ namespace boost { namespace fusion
>
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
explicit
vector_data(each_elem, Sequence&& rhs)
vector_data(Sequence&& rhs)
: store<I, T>(forward_at_c<I>(std::forward<Sequence>(rhs)))...
{}
template <typename ...U>
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
explicit
vector_data(each_elem, U&&... var)
vector_data(U&&... var)
: store<I, T>(std::forward<U>(var))...
{}
@ -264,7 +262,7 @@ namespace boost { namespace fusion
// In the (near) future release, should be fixed.
/* BOOST_CONSTEXPR */ BOOST_FUSION_GPU_ENABLED
explicit vector(U&&... u)
: base(vector_detail::each_elem(), std::forward<U>(u)...)
: base(std::forward<U>(u)...)
{}
template <
@ -277,7 +275,7 @@ namespace boost { namespace fusion
>
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
vector(Sequence&& seq)
: base(vector_detail::each_elem(), std::forward<Sequence>(seq))
: base(std::forward<Sequence>(seq))
{}
template <typename Sequence>

View File

@ -56,7 +56,7 @@ namespace boost { namespace fusion
>
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
tuple(tuple<U...> const& other)
: base(vector_detail::each_elem(), other) {}
: base(other) {}
template <
typename ...U
@ -66,7 +66,7 @@ namespace boost { namespace fusion
>
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
tuple(tuple<U...>&& other)
: base(vector_detail::each_elem(), std::move(other)) {}
: base(std::move(other)) {}
template <
typename ...U
@ -78,17 +78,17 @@ namespace boost { namespace fusion
/*BOOST_CONSTEXPR*/ BOOST_FUSION_GPU_ENABLED
explicit
tuple(U&&... args)
: base(vector_detail::each_elem(), std::forward<U>(args)...) {}
: base(std::forward<U>(args)...) {}
template<typename U1, typename U2>
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
tuple(std::pair<U1, U2> const& other)
: base(vector_detail::each_elem(), other.first, other.second) {}
: base(other.first, other.second) {}
template<typename U1, typename U2>
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
tuple(std::pair<U1, U2>&& other)
: base(vector_detail::each_elem(), std::move(other.first), std::move(other.second)) {}
: base(std::move(other.first), std::move(other.second)) {}
template<typename U>
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED