cxxheaderparser
cxxheaderparser copied to clipboard
[PARSE BUG]: fails to parse template cast operator
Problem description
Trying to parse a header with the attached definition in it fails with this exception:
CxxParseError: filtered.cpp:13282: parse error evaluating 'operator': unexpected 'operator', expected 'NAME'
C++ code that can't be parsed correctly (please double-check that https://robotpy.github.io/cxxheaderparser/ has the same error)
template <class T> ON_SimpleArray<T>::operator T *() {
return (m_count > 0) ? m_a : 0;
}
This morning I took a look since I thought it would be easy... but alas, it was more annoying than I expected.