[
https://issues.apache.org/jira/browse/MINIFICPP-1604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marton Szasz updated MINIFICPP-1604:
------------------------------------
Description:
Due to this error on Mac / AppleClang:
[https://github.com/szaszm/nifi-minifi-cpp/runs/3024143754#step:6:14628]
It's also a warning with normal clang:
../libminifi/src/controllers/keyvalue/AbstractCoreComponentStateManagerProvider.cpp:132:23:
error: ISO C++20 considers use of overloaded operator '!=' (with operand types
'rapidjson::GenericMemberIterator<[...]>' and
'rapidjson::GenericMemberIterator<[...]>') to be ambiguous despite there being
a unique best viable function with non-reversed arguments
[-Werror,-Wambiguous-reversed-operator]
for (const auto& kv : doc.GetObject()) {
^
../thirdparty/rapidjson-1.1.0/include/rapidjson/document.h:172:10: note:
candidate function with non-reversed arguments
bool operator!=(ConstIterator that) const { return ptr_ != that.ptr_; }
was:
Due to this error on Mac / AppleClang:
[https://github.com/szaszm/nifi-minifi-cpp/runs/3024143754#step:6:14628]
It's also a warning with normal clang:
{{
../libminifi/src/controllers/keyvalue/AbstractCoreComponentStateManagerProvider.cpp:132:23:
error: ISO C++20 considers use of overloaded operator '!=' (with operand types
'rapidjson::GenericMemberIterator<[...]>' and
'rapidjson::GenericMemberIterator<[...]>') to be ambiguous despite there being
a unique best viable function with non-reversed arguments
[-Werror,-Wambiguous-reversed-operator]
for (const auto& kv : doc.GetObject()) {
^
../thirdparty/rapidjson-1.1.0/include/rapidjson/document.h:172:10: note:
candidate function with non-reversed arguments
bool operator!=(ConstIterator that) const { return ptr_ != that.ptr_; }}}
cont.
> Upgrade rapidjson
> -----------------
>
> Key: MINIFICPP-1604
> URL: https://issues.apache.org/jira/browse/MINIFICPP-1604
> Project: Apache NiFi MiNiFi C++
> Issue Type: Improvement
> Affects Versions: 0.10.0
> Reporter: Marton Szasz
> Assignee: Marton Szasz
> Priority: Major
> Fix For: 0.11.0
>
>
> Due to this error on Mac / AppleClang:
> [https://github.com/szaszm/nifi-minifi-cpp/runs/3024143754#step:6:14628]
> It's also a warning with normal clang:
> ../libminifi/src/controllers/keyvalue/AbstractCoreComponentStateManagerProvider.cpp:132:23:
> error: ISO C++20 considers use of overloaded operator '!=' (with operand
> types 'rapidjson::GenericMemberIterator<[...]>' and
> 'rapidjson::GenericMemberIterator<[...]>') to be ambiguous despite there
> being a unique best viable function with non-reversed arguments
> [-Werror,-Wambiguous-reversed-operator]
> for (const auto& kv : doc.GetObject()) {
> ^
> ../thirdparty/rapidjson-1.1.0/include/rapidjson/document.h:172:10: note:
> candidate function with non-reversed arguments
> bool operator!=(ConstIterator that) const { return ptr_ != that.ptr_; }
--
This message was sent by Atlassian Jira
(v8.3.4#803005)