Skip to content

"identifier '_h' preceded by whitespace in a literal operator declaration is deprecated" warning for operator"" _h #135

@anba

Description

@anba

Clang 20 (or later) reports a warning for operator"" _h:

constexpr uint32_t operator"" _h(const char* x, size_t) { return Hash(x); }

Clang warning:

identifier '_h' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]

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