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
@ -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;
|
||||
|
Reference in New Issue
Block a user