diff options
Revamped to use `Cons` as a function and `Pair` as its result
* this is analogous to _Scheme_ where a pair (dot-expression) is returned from a call to `cons`
* `Head` and `Tail` are kept as direct references to the `CAR` and `CDR` values of a pair to match e.g. the math operators
Diffstat (limited to 'src/list/operation/append.h')
-rw-r--r-- | src/list/operation/append.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/list/operation/append.h b/src/list/operation/append.h index 9e1be79..6cf15f0 100644 --- a/src/list/operation/append.h +++ b/src/list/operation/append.h @@ -8,13 +8,13 @@ template < typename Secondary > struct Append { - typedef Cons< + typedef typename Cons< Head<Primary>, typename Append< Tail<Primary>, Secondary >::type - > type; + >::type type; }; template <typename Secondary> |