1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

fix swallow

This commit is contained in:
bolero-MURAKAMI 2018-05-29 22:57:25 +09:00
parent 10e239f933
commit 91b37d8f7f
2 changed files with 41 additions and 3 deletions

View file

@ -297,7 +297,7 @@ namespace sprout {
SPROUT_CXX14_CONSTEXPR void
assign_impl(Tuple&& t, sprout::index_tuple<Indexes...>) {
typedef typename std::decay<Tuple>::type type;
sprout::swallow({(base_type::template get<Indexes>(*this) = sprout::move(type::template get<Indexes>(SPROUT_FORWARD(Tuple, t))), 0)...});
sprout::swallow({((base_type::template get<Indexes>(*this) = sprout::move(type::template get<Indexes>(SPROUT_FORWARD(Tuple, t)))), 0)...});
}
template<sprout::index_t... Indexes>
SPROUT_CONSTEXPR std::tuple<Types...>