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

sprout::index_t 追加

This commit is contained in:
bolero-MURAKAMI 2012-02-28 10:46:39 +09:00
parent c9471df964
commit d5dcbaf4b2
44 changed files with 80 additions and 101 deletions

View file

@ -49,7 +49,7 @@ namespace sprout {
typedef sprout::breed::expr<Tag, src_args, N> src_type;
typedef sprout::breed::expr<Tag, dst_args, N> type;
private:
template<std::ptrdiff_t... Indexes>
template<sprout::index_t... Indexes>
static SPROUT_CONSTEXPR type call_impl(src_type const& e, sprout::index_tuple<Indexes...>) {
return type(e.template child<Indexes>()...);
}
@ -68,7 +68,7 @@ namespace sprout {
typedef sprout::breed::basic_expr<Tag, src_args, N> src_type;
typedef sprout::breed::basic_expr<Tag, dst_args, N> type;
private:
template<std::ptrdiff_t... Indexes>
template<sprout::index_t... Indexes>
static SPROUT_CONSTEXPR type call_impl(src_type const& e, sprout::index_tuple<Indexes...>) {
return type(e.template child<Indexes>()...);
}