mirror of
https://github.com/nlohmann/json.git
synced 2025-07-13 20:21:48 +03:00
💄 minor refactoring
This commit is contained in:
@ -3036,11 +3036,9 @@ class basic_json
|
|||||||
{
|
{
|
||||||
return m_value.boolean;
|
return m_value.boolean;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
JSON_THROW(std::domain_error("type must be boolean, but is " + type_name()));
|
JSON_THROW(std::domain_error("type must be boolean, but is " + type_name()));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/// get a pointer to the value (object)
|
/// get a pointer to the value (object)
|
||||||
object_t* get_impl_ptr(object_t* /*unused*/) noexcept
|
object_t* get_impl_ptr(object_t* /*unused*/) noexcept
|
||||||
|
@ -3036,11 +3036,9 @@ class basic_json
|
|||||||
{
|
{
|
||||||
return m_value.boolean;
|
return m_value.boolean;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
JSON_THROW(std::domain_error("type must be boolean, but is " + type_name()));
|
JSON_THROW(std::domain_error("type must be boolean, but is " + type_name()));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/// get a pointer to the value (object)
|
/// get a pointer to the value (object)
|
||||||
object_t* get_impl_ptr(object_t* /*unused*/) noexcept
|
object_t* get_impl_ptr(object_t* /*unused*/) noexcept
|
||||||
|
Reference in New Issue
Block a user