Skip to content

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

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]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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