mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
C++17 compatibility:
* std::void_t * std::bool_constant
This commit is contained in:
@@ -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
|
||||
@@ -25,8 +25,6 @@
|
||||
#include <ripple/beast/container/aged_container.h>
|
||||
#include <beast/clock/abstract_clock.h>
|
||||
#include <beast/empty_base_optimization.h>
|
||||
#include <beast/empty_base_optimization.h>
|
||||
#include <beast/cxx14/type_traits.h>
|
||||
#include <boost/intrusive/list.hpp>
|
||||
#include <boost/intrusive/set.hpp>
|
||||
#include <boost/version.hpp>
|
||||
@@ -35,7 +33,7 @@
|
||||
#include <initializer_list>
|
||||
#include <iterator>
|
||||
#include <memory>
|
||||
#include <type_traits>
|
||||
#include <beast/cxx17/type_traits.h> // <type_traits>
|
||||
#include <utility>
|
||||
|
||||
namespace beast {
|
||||
|
||||
Reference in New Issue
Block a user