2
0
mirror of https://github.com/boostorg/yap.git synced 2026-02-22 16:02:10 +00:00

Pass individual args through evaluate*(), instead of making a tuple of them.

This commit is contained in:
Zach Laine
2016-11-15 19:12:07 -06:00
parent 9563d58153
commit 15e70fefe1
7 changed files with 80 additions and 55 deletions

View File

@@ -22,14 +22,14 @@ namespace user {
double value;
};
template <typename E, typename Tuple>
template <typename E, typename ...T>
constexpr auto eval_expression_as (
E const & expr,
boost::hana::basic_type<user::number>,
Tuple && args)
T &&... args)
{
return static_cast<user::number>(
bp17::detail::default_eval_expr(expr, static_cast<Tuple &&>(args))
bp17::detail::default_eval_expr(expr, static_cast<T &&>(args)...)
);
}