aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-02-09 15:42:19 +0100
committerAdrian Kummerlaender2015-02-09 15:42:19 +0100
commit0d194826e1661a0b945211bccb387df0b7d89066 (patch)
tree991dc22b992fcb3edeeb68bef926f43b8c10349e /src
parentbeb46377c075ccc07a22b45771f8ad993a4e088e (diff)
downloadTypeAsValue-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`
Diffstat (limited to 'src')
-rw-r--r--src/list/list.h5
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