Skip to content

[PARSE BUG]: fails to parse template cast operator #112

@sampotter

Description

@sampotter

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions