<source>: In function 'int main()':
<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).
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