From e24f25ada7e8f48dc35cb235e045a4324bccb4f2 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 14 Feb 2015 10:43:49 +0100 Subject: Introduced `Eval` function evaluation helper * replaces `typename *::type` constructs with `Eval` applications * aims to further unify function evaluation --- src/list/operation/nth.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/list/operation/nth.h') diff --git a/src/list/operation/nth.h b/src/list/operation/nth.h index 076add4..08e60cc 100644 --- a/src/list/operation/nth.h +++ b/src/list/operation/nth.h @@ -10,10 +10,10 @@ template < typename Pair > struct Nth { - typedef typename Nth< + typedef Eval>, Tail - >::type type; + >> type; }; template @@ -32,13 +32,13 @@ struct Nth, void> { }; template -using First = typename Nth, List>::type; +using First = Eval, List>>; template -using Second = typename Nth, List>::type; +using Second = Eval, List>>; template -using Third = typename Nth, List>::type; +using Third = Eval, List>>; } -- cgit v1.2.3