diff options
author | Adrian Kummerlaender | 2015-02-09 15:42:19 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2015-02-09 15:42:19 +0100 |
commit | 0d194826e1661a0b945211bccb387df0b7d89066 (patch) | |
tree | 991dc22b992fcb3edeeb68bef926f43b8c10349e | |
parent | beb46377c075ccc07a22b45771f8ad993a4e088e (diff) | |
download | TypeAsValue-0d194826e1661a0b945211bccb387df0b7d89066.tar TypeAsValue-0d194826e1661a0b945211bccb387df0b7d89066.tar.gz TypeAsValue-0d194826e1661a0b945211bccb387df0b7d89066.tar.bz2 TypeAsValue-0d194826e1661a0b945211bccb387df0b7d89066.tar.lz TypeAsValue-0d194826e1661a0b945211bccb387df0b7d89066.tar.xz TypeAsValue-0d194826e1661a0b945211bccb387df0b7d89066.tar.zst TypeAsValue-0d194826e1661a0b945211bccb387df0b7d89066.zip |
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`
-rw-r--r-- | src/list/list.h | 5 |
1 files changed, 5 insertions, 0 deletions
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<void, Tail...> { typedef typename List<Tail...>::type type; }; +template <> +struct List<void, void> { + typedef void type; +}; + template < typename Type, Type... Values |