C++17 compatibility:

* std::void_t
* std::bool_constant
This commit is contained in:
Vinnie Falco
2016-03-30 09:16:06 -04:00
parent a433804ee6
commit 874bbd0b8a

View File

@@ -17,8 +17,8 @@
*/
//==============================================================================
#ifndef BEAST_CXX14_TYPE_TRAITS_H_INCLUDED
#define BEAST_CXX14_TYPE_TRAITS_H_INCLUDED
#ifndef BEAST_CXX17_TYPE_TRAITS_H_INCLUDED
#define BEAST_CXX17_TYPE_TRAITS_H_INCLUDED
#include <tuple>
#include <type_traits>
@@ -26,6 +26,16 @@
namespace std {
#ifndef _MSC_VER
template<class...>
using void_t = void;
template<bool B>
using bool_constant = std::integral_constant<bool, B>;
#endif
// Ideas from Howard Hinnant
//
// Specializations of is_constructible for pair and tuple which
@@ -41,6 +51,6 @@ struct is_constructible <pair <T, U>>
{
};
}
} // std
#endif