cxxheaderparser
cxxheaderparser copied to clipboard
[PARSE BUG]: fails to parse "non-pointer" function argument
Problem description
I was very sad to learn that this is valid C++:
void RemoveIf(bool predicate(const T& key));
but apparently it is. 🙃
This library fails to parse it. Changing the line to:
void RemoveIf(bool (*predicate)(const T& key));
fixes the problem, although they are functionally equivalent.
C++ code that can't be parsed correctly (please double-check that https://robotpy.github.io/cxxheaderparser/ has the same error)
void RemoveIf(bool (*predicate)(const T& key));
C++ is awful.