diff options
Introduced `Eval` function evaluation helper
* replaces `typename *::type` constructs with `Eval` applications
* aims to further unify function evaluation
Diffstat (limited to 'src/list/operation/higher/fold.h')
-rw-r--r-- | src/list/operation/higher/fold.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/list/operation/higher/fold.h b/src/list/operation/higher/fold.h index 6ad4bd7..3ed0a42 100644 --- a/src/list/operation/higher/fold.h +++ b/src/list/operation/higher/fold.h @@ -9,10 +9,10 @@ template < typename Current > struct Fold { - typedef typename Function< + typedef Eval<Function< Head<Current>, - typename Fold<Function, Initial, Tail<Current>>::type - >::type type; + Eval<Fold<Function, Initial, Tail<Current>>> + >> type; }; template < |