Skip to content

Issue with detection of < operator #217

@ajay-mk

Description

@ajay-mk

Getting the following error with version 0.3.7:

meta::is_less_than_comparable< T, std::void_t< decltype(std::declval< const T & >()< std::declval< const T & >())> > has 5 '<' and 4 '>', exhale does not know what to do with your code.Traceback (most recent call last)

The additional < is the operator, not part of the braces, so the syntax is correct. Looks similar to #169.
If I understand things correctly, the syntax doesn't satisfy the conditions for operator_overload to be True in the following lines

exhale/exhale/graph.py

Lines 2449 to 2452 in c995925

if node.kind == "function" and "operator" in node.name:
operator_overload = True
else:
operator_overload = False

Version info:
Doxygen: 1.11
Breathe: 4.35
Sphinx: 7.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions