Closed tusooa closed 1 year ago
Follow up of https://github.com/nlohmann/json/issues/3827 .
As get<>() may not always work, the documentation SHOULD use template get<>() instead of get<>() in the examples to avoid confusion.
get<>()
template get<>()
use the explicit conversion described in the example
expected: works
actual: compilation failure
No response
g++ 12 on GNU/Linux
3.11.2
develop
Description
Follow up of https://github.com/nlohmann/json/issues/3827 .
As
get<>()
may not always work, the documentation SHOULD usetemplate get<>()
instead ofget<>()
in the examples to avoid confusion.Reproduction steps
use the explicit conversion described in the example
Expected vs. actual results
expected: works
actual: compilation failure
Minimal code example
No response
Error messages
No response
Compiler and operating system
g++ 12 on GNU/Linux
Library version
3.11.2
Validation
develop
branch is used.