1
0
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:
Harinath Nampally
2024-12-28 10:22:45 -05:00
committed by GitHub
parent 6be4e85600
commit 5ff90d9e02
2 changed files with 4 additions and 4 deletions

View File

@ -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 >
basic_json(const BasicJsonType& val)
#if JSON_DIAGNOSTIC_POSITIONS
: start_position(val.start_position),
end_position(val.end_position)
: start_position(val.start_pos()),
end_position(val.end_pos())
#endif
{
using other_boolean_t = typename BasicJsonType::boolean_t;