mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix index_range implementation
This commit is contained in:
parent
331aaa3559
commit
049d4592c2
78 changed files with 178 additions and 225 deletions
|
@ -215,7 +215,7 @@ namespace sprout {
|
|||
template<typename... Args>
|
||||
struct deduce_domain
|
||||
: public sprout::breed::detail::deduce_domain_impl<
|
||||
typename sprout::index_range<0, sizeof...(Args)>::type,
|
||||
typename sprout::make_index_tuple<sizeof...(Args)>::type,
|
||||
Args...
|
||||
>
|
||||
{};
|
||||
|
|
|
@ -55,7 +55,7 @@ namespace sprout {
|
|||
}
|
||||
public:
|
||||
static SPROUT_CONSTEXPR type call(src_type const& e) {
|
||||
return call_impl(sprout::index_range<0, sizeof...(Args)>::make());
|
||||
return call_impl(sprout::make_index_tuple<sizeof...(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::index_range<0, sizeof...(Args)>::make());
|
||||
return call_impl(sprout::make_index_tuple<sizeof...(Args)>::make());
|
||||
}
|
||||
};
|
||||
} // namespace detail
|
||||
|
|
|
@ -42,7 +42,7 @@ namespace sprout {
|
|||
typedef typename sprout::breed::base_expr<
|
||||
typename unref_expr::breed_domain,
|
||||
typename unref_expr::breed_tag,
|
||||
typename list_impl<typename sprout::index_range<0, Arity>::type>::type
|
||||
typename list_impl<typename sprout::make_index_tuple<Arity>::type>::type
|
||||
>::type expr_type;
|
||||
typedef typename unref_expr::breed_generator breed_generator;
|
||||
typedef typename sprout::breed::detail::std_result_of<
|
||||
|
@ -74,7 +74,7 @@ namespace sprout {
|
|||
typename pass_through_impl::data_param d
|
||||
) const
|
||||
{
|
||||
return call_impl(e, s, d, sprout::index_range<0, Arity>::make());
|
||||
return call_impl(e, s, d, sprout::make_index_tuple<Arity>::make());
|
||||
}
|
||||
};
|
||||
template<typename Grammar, typename Expr, typename State, typename Data>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue