diff options
Diffstat (limited to 'src/list/generator')
-rw-r--r-- | src/list/generator/iota.h | 6 | ||||
-rw-r--r-- | src/list/generator/make_list.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/list/generator/iota.h b/src/list/generator/iota.h index 54f0f40..2d5b506 100644 --- a/src/list/generator/iota.h +++ b/src/list/generator/iota.h @@ -11,14 +11,14 @@ template < typename Step > struct Iota { - typedef Cons< + typedef typename Cons< Initial, typename Iota< Substract<Count, Size<1>>, Add<Initial, Step>, Step >::type - > type; + >::type type; }; template < @@ -26,7 +26,7 @@ template < typename Step > struct Iota<Size<1>, Initial, Step> { - typedef Cons<Initial, void> type; + typedef typename Cons<Initial, void>::type type; }; } 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; }; } |