forked from boostorg/type_traits
Small improvements to make_void:
* When there are no variadic templates, supports up to 5 parameters. * Tests added for void_t. * Documentation added on compiler support.
This commit is contained in:
1 parent
f59467e310
commit
7b29d67a3e
19 files changed
+42
-23
No files matched your search
@@ -24,8 +24,10 @@ struct make_void {
|
||||
template<class... Ts>
|
||||
using void_t = typename make_void<Ts...>::type;
|
||||
#endif
|
||||
#else
|
||||
template<class>
|
||||
|
||||
#else // BOOST_NO_CXX11_VARIADIC_TEMPLATES
|
||||
|
||||
template<class T = void, class U = void, class V = void, class X = void, class Y = void>
|
||||
struct make_void {
|
||||
typedef void type;
|
||||
};
|
||||
@@ -34,6 +36,7 @@ struct make_void {
|
||||
template<class T>
|
||||
using void_t = typename make_void<T>::type;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
} /* boost */
|
||||
|
||||
Reference in new issue
Block a user