Update core.h

This commit is contained in:
pmqtt 2023-08-11 22:53:05 +02:00 committed by GitHub
parent ee475d6409
commit f8f5e7600e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,6 +273,17 @@ template <typename T> struct is_contiguous : std::false_type {};
template <typename Char> template <typename Char>
struct is_contiguous<std::basic_string<Char>> : std::true_type {}; struct is_contiguous<std::basic_string<Char>> : std::true_type {};
template<typename E, typename = void>
struct is_scoped_enum : std::false_type {};
template<typename E>
struct is_scoped_enum<E, std::enable_if_t<
std::is_enum<E>::value &&
!std::is_convertible<E, typename std::underlying_type<E>::type>::value
# ifdef __cpp_lib_byte
&& !std::is_same<E, std::byte>::value
# endif
>> : std::true_type {};
struct monostate { struct monostate {
constexpr monostate() {} constexpr monostate() {}
}; };