Regression: call to member function 'value' is ambiguous #3652
Labels
confirmed
kind: bug
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
Description
A call to
value
with a default int value andstd::string
is now ambiguous in the latest version.To make it compile I need either to wrap the key value into a
std::string_view
type or explicitly specify the key template parameter tostd::string
. None of these spelling are compatible with the previous working version (3.10.5)Reproduction steps
Minimal code example compiled using C++20 and version 3.11.1
The same code compiles correctly without warning using version 3.10.5
Expected vs. actual results
Results:
Expected: no compilation error on code previously working
Minimal code example
Error messages
Compiler and operating system
g++-12 (warning) and clang++-14 (error) with -std=c++20
Library version
3.11.1
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: