Skip to content

[PARSE BUG]: Issues with operators #145

Description

@HaydenMichel8

Problem description

I have been having some issues with ::operator functions:
foo::operator bar() {;}
When this is replaced to have capital OPERATOR it works.
(This is a known issue #94)

But for this one even with a capital OPERATOR it has a parse error with the bool:
foo::operator bool() const { return bar; }

C++ code that can't be parsed correctly (please double-check that https://robotpy.github.io/cxxheaderparser/ has the same error)

foo::OPERATOR bool() const { return bar; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions