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:
jzmaddock committed 2017-02-07 18:49:33 +00:00
1 parent f59467e310
commit 7b29d67a3e
19 files changed
+42 -23

No files matched your search

+12 -1
View File
@@ -26,9 +26,20 @@ BOOST_CHECK_TYPE(::tt::make_void<int(*)(int)>::type, void);
BOOST_CHECK_TYPE(::tt::make_void<int[]>::type, void);
BOOST_CHECK_TYPE(::tt::make_void<int[1]>::type, void);
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
BOOST_CHECK_TYPE(::tt::make_void<>::type, void);
BOOST_CHECK_TYPE3(::tt::make_void<int, int>::type, void);
#ifndef BOOST_NO_CXX11_TEMPLATE_ALIASES
BOOST_CHECK_TYPE(::tt::void_t<int>, void);
BOOST_CHECK_TYPE(::tt::void_t<const volatile int>, void);
BOOST_CHECK_TYPE(::tt::void_t<int&>, void);
BOOST_CHECK_TYPE(::tt::void_t<void>, void);
BOOST_CHECK_TYPE(::tt::void_t<int(*)(int)>, void);
BOOST_CHECK_TYPE(::tt::void_t<int[]>, void);
BOOST_CHECK_TYPE(::tt::void_t<int[1]>, void);
BOOST_CHECK_TYPE(::tt::void_t<>, void);
BOOST_CHECK_TYPE3(::tt::void_t<int, int>, void);
#endif
TT_TEST_END