From 0d194826e1661a0b945211bccb387df0b7d89066 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 9 Feb 2015 15:42:19 +0100 Subject: Added `void` concatenation `List` template specialization * otherwise a type conflict occurs when trying to instantiate a list of `void` ** this hinders construction of higher level functionality on top of `List` --- src/list/list.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/list') diff --git a/src/list/list.h b/src/list/list.h index d2a5cb0..658ac31 100644 --- a/src/list/list.h +++ b/src/list/list.h @@ -31,6 +31,11 @@ struct List { typedef typename List::type type; }; +template <> +struct List { + typedef void type; +}; + template < typename Type, Type... Values -- cgit v1.2.3