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/generator/make_list.h')
-rw-r--r-- | src/list/generator/make_list.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/list/generator/make_list.h b/src/list/generator/make_list.h index 3bf65a2..33419cb 100644 --- a/src/list/generator/make_list.h +++ b/src/list/generator/make_list.h @@ -11,18 +11,18 @@ template < typename Element > struct MakeList { - typedef Cons< + typedef typename Cons< Element, typename MakeList< Substract<Count, Size<1>>, Element >::type - > type; + >::type type; }; template <typename Element> struct MakeList<Size<1>, Element> { - typedef Cons<Element, void> type; + typedef typename Cons<Element, void>::type type; }; } |