mirror of
https://github.com/nlohmann/json.git
synced 2024-11-27 16:49:02 +08:00
update single include
This commit is contained in:
parent
e58331aec6
commit
8045369d76
@ -21637,6 +21637,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
|
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
|
else if (JSON_HEDLEY_LIKELY(is_null()))
|
||||||
|
{
|
||||||
|
return default_value;
|
||||||
|
}
|
||||||
|
|
||||||
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
|
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
|
||||||
}
|
}
|
||||||
@ -21662,6 +21666,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
|
|
||||||
return std::forward<ValueType>(default_value);
|
return std::forward<ValueType>(default_value);
|
||||||
}
|
}
|
||||||
|
else if (JSON_HEDLEY_LIKELY(is_null()))
|
||||||
|
{
|
||||||
|
return std::forward<ValueType>(default_value);
|
||||||
|
}
|
||||||
|
|
||||||
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
|
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
|
||||||
}
|
}
|
||||||
@ -21688,6 +21696,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
|
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
|
else if (JSON_HEDLEY_LIKELY(is_null()))
|
||||||
|
{
|
||||||
|
return default_value;
|
||||||
|
}
|
||||||
|
|
||||||
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
|
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
|
||||||
}
|
}
|
||||||
@ -21715,6 +21727,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
|
|
||||||
return std::forward<ValueType>(default_value);
|
return std::forward<ValueType>(default_value);
|
||||||
}
|
}
|
||||||
|
else if (JSON_HEDLEY_LIKELY(is_null()))
|
||||||
|
{
|
||||||
|
return std::forward<ValueType>(default_value);
|
||||||
|
}
|
||||||
|
|
||||||
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
|
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
|
||||||
}
|
}
|
||||||
@ -21739,6 +21755,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (JSON_HEDLEY_LIKELY(is_null()))
|
||||||
|
{
|
||||||
|
return default_value;
|
||||||
|
}
|
||||||
|
|
||||||
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
|
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
|
||||||
}
|
}
|
||||||
@ -21764,6 +21784,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
return std::forward<ValueType>(default_value);
|
return std::forward<ValueType>(default_value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (JSON_HEDLEY_LIKELY(is_null()))
|
||||||
|
{
|
||||||
|
return std::forward<ValueType>(default_value);
|
||||||
|
}
|
||||||
|
|
||||||
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
|
JSON_THROW(type_error::create(306, detail::concat("cannot use value() with ", type_name()), this));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user