We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
template get
Follow up of #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
The text was updated successfully, but these errors were encountered:
Use template get instead of get in examples
182b32d
nlohmann#4038
template
get
Successfully merging a pull request may close this issue.
Description
Follow up of #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.The text was updated successfully, but these errors were encountered: