You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build breaks with nlohmann-json-3.11.1: multiple overloads of 'operator/=' instantiate to the same signature 'nlohmann::json_pointer<unsigned long> &(std::size_t)'
#79
Closed
yurivict opened this issue
Aug 3, 2022
· 3 comments
In file included from /wrkdirs/usr/ports/net-im/mtxclient/work/mtxclient-0.8.0/lib/structs/events/ephemeral/receipt.cpp:1:
In file included from /usr/local/include/nlohmann/json.hpp:50:
/usr/local/include/nlohmann/detail/json_pointer.hpp:116:19: error: multiple overloads of 'operator/=' instantiate to the same signature 'nlohmann::json_pointer<unsigned long> &(std::size_t)' (aka 'nlohmann::json_pointer<unsigned long> &(unsigned long)')
json_pointer& operator/=(std::size_t array_idx)
^
/wrkdirs/usr/ports/net-im/mtxclient/work/mtxclient-0.8.0/lib/structs/events/ephemeral/receipt.cpp:24:56: note: in instantiation of template class 'nlohmann::json_pointer<unsigned long>' requested here
userReceipts.value().value<uint64_t>("ts", 0);
^
/wrkdirs/usr/ports/net-im/mtxclient/work/mtxclient-0.8.0/lib/structs/events/ephemeral/receipt.cpp:24:40: note: while substituting deduced template arguments into function template 'value' [with BasicJsonType = unsigned long]
userReceipts.value().value<uint64_t>("ts", 0);
^
/usr/local/include/nlohmann/detail/json_pointer.hpp:108:19: note: previous declaration is here
json_pointer& operator/=(string_t token)
^
/usr/local/include/nlohmann/detail/json_pointer.hpp:138:25: error: redefinition of 'operator/'
friend json_pointer operator/(const json_pointer& lhs, std::size_t array_idx)
^
/usr/local/include/nlohmann/detail/json_pointer.hpp:131:25: note: previous definition is here
friend json_pointer operator/(const json_pointer& lhs, string_t token) // NOLINT(performance-unnecessary-value-param)
^
2 errors generated.
Version: 0.8.0
FreeBSD 13.1
The text was updated successfully, but these errors were encountered:
Version: 0.8.0
FreeBSD 13.1
The text was updated successfully, but these errors were encountered: