mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
minor cleanup
This commit is contained in:
@ -1465,7 +1465,7 @@ class basic_json
|
|||||||
std::enable_if <
|
std::enable_if <
|
||||||
std::is_constructible<number_unsigned_t, CompatibleNumberUnsignedType>::value and
|
std::is_constructible<number_unsigned_t, CompatibleNumberUnsignedType>::value and
|
||||||
std::numeric_limits<CompatibleNumberUnsignedType>::is_integer and
|
std::numeric_limits<CompatibleNumberUnsignedType>::is_integer and
|
||||||
!std::numeric_limits<CompatibleNumberUnsignedType>::is_signed,
|
not std::numeric_limits<CompatibleNumberUnsignedType>::is_signed,
|
||||||
CompatibleNumberUnsignedType>::type
|
CompatibleNumberUnsignedType>::type
|
||||||
= 0>
|
= 0>
|
||||||
basic_json(const CompatibleNumberUnsignedType val) noexcept
|
basic_json(const CompatibleNumberUnsignedType val) noexcept
|
||||||
@ -5079,6 +5079,7 @@ class basic_json
|
|||||||
throw std::domain_error("iterator does not fit current value");
|
throw std::domain_error("iterator does not fit current value");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check if range iterators belong to the same JSON object
|
||||||
if (first.m_object != last.m_object)
|
if (first.m_object != last.m_object)
|
||||||
{
|
{
|
||||||
throw std::domain_error("iterators do not fit");
|
throw std::domain_error("iterators do not fit");
|
||||||
|
@ -1465,7 +1465,7 @@ class basic_json
|
|||||||
std::enable_if <
|
std::enable_if <
|
||||||
std::is_constructible<number_unsigned_t, CompatibleNumberUnsignedType>::value and
|
std::is_constructible<number_unsigned_t, CompatibleNumberUnsignedType>::value and
|
||||||
std::numeric_limits<CompatibleNumberUnsignedType>::is_integer and
|
std::numeric_limits<CompatibleNumberUnsignedType>::is_integer and
|
||||||
!std::numeric_limits<CompatibleNumberUnsignedType>::is_signed,
|
not std::numeric_limits<CompatibleNumberUnsignedType>::is_signed,
|
||||||
CompatibleNumberUnsignedType>::type
|
CompatibleNumberUnsignedType>::type
|
||||||
= 0>
|
= 0>
|
||||||
basic_json(const CompatibleNumberUnsignedType val) noexcept
|
basic_json(const CompatibleNumberUnsignedType val) noexcept
|
||||||
@ -5079,6 +5079,7 @@ class basic_json
|
|||||||
throw std::domain_error("iterator does not fit current value");
|
throw std::domain_error("iterator does not fit current value");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check if range iterators belong to the same JSON object
|
||||||
if (first.m_object != last.m_object)
|
if (first.m_object != last.m_object)
|
||||||
{
|
{
|
||||||
throw std::domain_error("iterators do not fit");
|
throw std::domain_error("iterators do not fit");
|
||||||
|
Reference in New Issue
Block a user