Skip to content

Negative arguments for C++ non-type template parameters interact badly with left-arrow ligatures #107

@chiphogg

Description

@chiphogg

For example,

auto foo = Constant<-1>;

The <- renders as an arrow. It just looks wrong.

Never mind how realistic this example may or may not be. 🙂 I actually encounter non-type template parameters routinely in my codebase.

Perhaps the ligature could be disabled if the <- is followed by digits and/or a ., with a , or > afterwards? I don't have any idea how ligature disabling works, but I've noticed that it happens if, e.g., I keep typing multiple ###... or ///....

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions