aboutsummaryrefslogtreecommitdiff
path: root/src/list/operation/higher/drop_while.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/list/operation/higher/drop_while.h')
-rw-r--r--src/list/operation/higher/drop_while.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/list/operation/higher/drop_while.h b/src/list/operation/higher/drop_while.h
index ad1553f..8ba2664 100644
--- a/src/list/operation/higher/drop_while.h
+++ b/src/list/operation/higher/drop_while.h
@@ -10,11 +10,11 @@ template <
typename Current
>
struct DropWhile {
- typedef typename If<
- Predicate<Head<Current>>::type::value,
- typename DropWhile<Predicate, Tail<Current>>::type,
+ typedef Eval<If<
+ Eval<Predicate<Head<Current>>>,
+ Eval<DropWhile<Predicate, Tail<Current>>>,
Current
- >::type type;
+ >> type;
};
template <