mirror of
https://github.com/nlohmann/json.git
synced 2025-07-29 23:01:16 +03:00
fix diagnostic positions related compilation errors (#4570)
This commit is contained in:
committed by
GitHub
parent
6be4e85600
commit
5ff90d9e02
@ -849,8 +849,8 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
detail::is_basic_json<BasicJsonType>::value&& !std::is_same<basic_json, BasicJsonType>::value, int > = 0 >
|
detail::is_basic_json<BasicJsonType>::value&& !std::is_same<basic_json, BasicJsonType>::value, int > = 0 >
|
||||||
basic_json(const BasicJsonType& val)
|
basic_json(const BasicJsonType& val)
|
||||||
#if JSON_DIAGNOSTIC_POSITIONS
|
#if JSON_DIAGNOSTIC_POSITIONS
|
||||||
: start_position(val.start_position),
|
: start_position(val.start_pos()),
|
||||||
end_position(val.end_position)
|
end_position(val.end_pos())
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
using other_boolean_t = typename BasicJsonType::boolean_t;
|
using other_boolean_t = typename BasicJsonType::boolean_t;
|
||||||
|
@ -20704,8 +20704,8 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
detail::is_basic_json<BasicJsonType>::value&& !std::is_same<basic_json, BasicJsonType>::value, int > = 0 >
|
detail::is_basic_json<BasicJsonType>::value&& !std::is_same<basic_json, BasicJsonType>::value, int > = 0 >
|
||||||
basic_json(const BasicJsonType& val)
|
basic_json(const BasicJsonType& val)
|
||||||
#if JSON_DIAGNOSTIC_POSITIONS
|
#if JSON_DIAGNOSTIC_POSITIONS
|
||||||
: start_position(val.start_position),
|
: start_position(val.start_pos()),
|
||||||
end_position(val.end_position)
|
end_position(val.end_pos())
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
using other_boolean_t = typename BasicJsonType::boolean_t;
|
using other_boolean_t = typename BasicJsonType::boolean_t;
|
||||||
|
Reference in New Issue
Block a user