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
Function templates can be explicitly instantiated (including those with inferred template parameters), but cxxheaderparser will not have it.
Per
cxxheaderparser/cxxheaderparser/parser.py
Line 738 in 544c253
https://en.cppreference.com/w/cpp/language/function_template explicit instantiation
https://coliru.stacked-crooked.com/a/15000b7567cd61ca <- compiles fine
The text was updated successfully, but these errors were encountered:
Please post an example of the code that can't be parsed in this issue, thanks!
Sorry, something went wrong.
https://coliru.stacked-crooked.com/a/15000b7567cd61ca is the example
#include <iostream> template <typename T> T tFunction(T val); template <typename T> T tFunction(T val) { return val; } template bool tFunction(bool val);
Specifically, template bool tFunction(bool val); doesn't work in cxxheaderparser, but godbolt seems to accept it.
template bool tFunction(bool val);
That's a weird declaration.
No branches or pull requests
Function templates can be explicitly instantiated (including those with inferred template parameters), but cxxheaderparser will not have it.
Per
cxxheaderparser/cxxheaderparser/parser.py
Line 738 in 544c253
https://en.cppreference.com/w/cpp/language/function_template explicit instantiation
https://coliru.stacked-crooked.com/a/15000b7567cd61ca <- compiles fine
The text was updated successfully, but these errors were encountered: