Commit 38e87948 authored by Dominik Charousset's avatar Dominik Charousset

Fix formatting / coding style nitpicks

parent 82435879
...@@ -162,8 +162,7 @@ struct rvalue_builder { ...@@ -162,8 +162,7 @@ struct rvalue_builder {
rvalue_builder(fun_container arg1) : m_funs(std::move(arg1)) {} rvalue_builder(fun_container arg1) : m_funs(std::move(arg1)) {}
template <class Expr> template <class Expr>
match_expr< match_expr<typename get_case<is_complete, Expr, Transformers, Pattern>::type>
typename get_case<is_complete, Expr, Transformers, Pattern>::type>
operator>>(Expr expr) const { operator>>(Expr expr) const {
using lifted_expr = using lifted_expr =
typename get_case< typename get_case<
...@@ -177,10 +176,16 @@ struct rvalue_builder { ...@@ -177,10 +176,16 @@ struct rvalue_builder {
using trimmed_projections = typename tl_trim<Transformers>::type; using trimmed_projections = typename tl_trim<Transformers>::type;
tuple_maker f; tuple_maker f;
auto lhs = apply_args(f, get_indices(trimmed_projections{}), m_funs); auto lhs = apply_args(f, get_indices(trimmed_projections{}), m_funs);
typename tl_apply< using rhs_type =
typename tl_slice<target, tl_size<trimmed_projections>::value, typename tl_apply<
tl_size<target>::value>::type, typename tl_slice<
std::tuple>::type rhs; target,
tl_size<trimmed_projections>::value,
tl_size<target>::value
>::type,
std::tuple
>::type;
rhs_type rhs;
// done // done
return lifted_expr{std::move(expr), std::tuple_cat(lhs, rhs)}; return lifted_expr{std::move(expr), std::tuple_cat(lhs, rhs)};
} }
...@@ -311,7 +316,7 @@ constexpr boxed_arg_match_t arg_match = boxed_arg_match_t(); ...@@ -311,7 +316,7 @@ constexpr boxed_arg_match_t arg_match = boxed_arg_match_t();
template <class T, typename Predicate> template <class T, typename Predicate>
std::function<optional<T>(const T&)> guarded(Predicate p, T value) { std::function<optional<T>(const T&)> guarded(Predicate p, T value) {
return [=](const T& other)->optional<T> { return [=](const T& other) -> optional<T> {
if (p(other, value)) { if (p(other, value)) {
return value; return value;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment