mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
support for N3658 (Compile-time integer sequences): index_tuple
rename: integer_seq -> integer_sequence, make_integer_sequence -> make_integer_sequence add unsigned-index sequence: index_sequence(alias), make_index_sequence, index_sequence_for add: integer_pack, index_pack
This commit is contained in:
parent
a3aedcf136
commit
bb36ef6e8b
24 changed files with 196 additions and 83 deletions
|
@ -55,7 +55,7 @@ namespace sprout {
|
|||
}
|
||||
public:
|
||||
static SPROUT_CONSTEXPR type call(src_type const& e) {
|
||||
return call_impl(sprout::make_index_tuple<sizeof...(Args)>::make());
|
||||
return call_impl(sprout::index_pack<Args...>::make());
|
||||
}
|
||||
};
|
||||
template<typename Tag, typename... Args>
|
||||
|
@ -74,7 +74,7 @@ namespace sprout {
|
|||
}
|
||||
public:
|
||||
static SPROUT_CONSTEXPR type call(src_type const& e) {
|
||||
return call_impl(sprout::make_index_tuple<sizeof...(Args)>::make());
|
||||
return call_impl(sprout::index_pack<Args...>::make());
|
||||
}
|
||||
};
|
||||
} // namespace detail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue