diff options
Defer `If` template resolution analogously to other functions
* all other functions sans `Cons` are resolved when the respective member `*::type` is instantiated
* this was changed soely to increase coherence
Diffstat (limited to 'src/list/operation/higher/take_while.h')
-rw-r--r-- | src/list/operation/higher/take_while.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/list/operation/higher/take_while.h b/src/list/operation/higher/take_while.h index 1ee6736..27f58ed 100644 --- a/src/list/operation/higher/take_while.h +++ b/src/list/operation/higher/take_while.h @@ -10,14 +10,14 @@ template < typename Current > struct TakeWhile { - typedef If< + typedef typename If< Predicate<Head<Current>>::type::value, Cons< Head<Current>, typename TakeWhile<Predicate, Tail<Current>>::type >, void - > type; + >::type type; }; template < |