mirror of
https://github.com/nlohmann/json.git
synced 2026-04-23 08:19:29 +00:00
🔊 add test for type traits
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include <nlohmann/detail/input/input_adapters.hpp>
|
||||
#include <nlohmann/detail/input/position_t.hpp>
|
||||
#include <nlohmann/detail/macro_scope.hpp>
|
||||
#include <nlohmann/detail/meta/type_traits.hpp>
|
||||
|
||||
namespace nlohmann
|
||||
{
|
||||
@@ -918,10 +919,6 @@ class lexer : public lexer_base<BasicJsonType>
|
||||
f = std::strtold(str, endptr);
|
||||
}
|
||||
|
||||
template<typename NumberType>
|
||||
struct is_64_bit : std::integral_constant < bool, (sizeof(NumberType) <= 8) >
|
||||
{};
|
||||
|
||||
JSON_HEDLEY_NON_NULL(2)
|
||||
unsigned long long strtoull(const char* str, char** str_end, std::true_type)
|
||||
{
|
||||
|
||||
@@ -327,6 +327,10 @@ template<typename BasicJsonType, typename ConstructibleArrayType>
|
||||
struct is_constructible_array_type
|
||||
: is_constructible_array_type_impl<BasicJsonType, ConstructibleArrayType> {};
|
||||
|
||||
template<typename NumberType>
|
||||
struct is_64_bit : std::integral_constant < bool, (sizeof(NumberType) <= 8) >
|
||||
{};
|
||||
|
||||
template<typename RealIntegerType, typename CompatibleNumberIntegerType,
|
||||
typename = void>
|
||||
struct is_compatible_integer_type_impl : std::false_type {};
|
||||
|
||||
Reference in New Issue
Block a user