🎨 cleanup after #1228
This commit is contained in:
parent
d3428b35c5
commit
ebb3c03293
3 changed files with 6 additions and 6 deletions
|
@ -218,8 +218,8 @@ template <typename BasicJsonType, typename CompatibleArrayType,
|
||||||
|
|
||||||
auto from_json(const BasicJsonType& j, CompatibleArrayType& arr)
|
auto from_json(const BasicJsonType& j, CompatibleArrayType& arr)
|
||||||
-> decltype(from_json_array_impl(j, arr, priority_tag<3> {}),
|
-> decltype(from_json_array_impl(j, arr, priority_tag<3> {}),
|
||||||
j.template get<typename CompatibleArrayType::value_type>(),
|
j.template get<typename CompatibleArrayType::value_type>(),
|
||||||
void())
|
void())
|
||||||
{
|
{
|
||||||
if (JSON_UNLIKELY(not j.is_array()))
|
if (JSON_UNLIKELY(not j.is_array()))
|
||||||
{
|
{
|
||||||
|
|
|
@ -1232,8 +1232,8 @@ template <typename BasicJsonType, typename CompatibleArrayType,
|
||||||
|
|
||||||
auto from_json(const BasicJsonType& j, CompatibleArrayType& arr)
|
auto from_json(const BasicJsonType& j, CompatibleArrayType& arr)
|
||||||
-> decltype(from_json_array_impl(j, arr, priority_tag<3> {}),
|
-> decltype(from_json_array_impl(j, arr, priority_tag<3> {}),
|
||||||
j.template get<typename CompatibleArrayType::value_type>(),
|
j.template get<typename CompatibleArrayType::value_type>(),
|
||||||
void())
|
void())
|
||||||
{
|
{
|
||||||
if (JSON_UNLIKELY(not j.is_array()))
|
if (JSON_UNLIKELY(not j.is_array()))
|
||||||
{
|
{
|
||||||
|
|
|
@ -317,8 +317,8 @@ TEST_CASE("object inspection")
|
||||||
SECTION("round trips")
|
SECTION("round trips")
|
||||||
{
|
{
|
||||||
for (const auto& s :
|
for (const auto& s :
|
||||||
{"3.141592653589793", "1000000000000000010E5"
|
{"3.141592653589793", "1000000000000000010E5"
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
json j1 = json::parse(s);
|
json j1 = json::parse(s);
|
||||||
std::string s1 = j1.dump();
|
std::string s1 = j1.dump();
|
||||||
|
|
Loading…
Reference in a new issue