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
<source>: In function'intmain()':<source>:26:24: error: no match for 'operator[]' (operand types are 'json' {aka 'nlohmann::json_abi_v3_11_2::basic_json<>'} and 'Bar') 26 | std::cout << js[Bar{}] << "\n"; | ^
### Compiler and operating system
linux gcc 12.2
### Library version
trunk
### Validation
- [x] The bug also occurs if the latest version from the [`develop`](https://github.com/nlohmann/json/tree/develop) branch is used.
- [ ] I can successfully [compile and run the unit tests](https://github.com/nlohmann/json#execute-unit-tests).
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Description
operator string_view()
isn't used, whereasoperator string()
is.Reproduction steps
https://godbolt.org/z/MYEYG3Gao
Expected vs. actual results
compiles
Minimal code example
Error messages
The text was updated successfully, but these errors were encountered: