Skip to content

fix: OPERATOR_LITERAL Wdeprecated-literal-operator - #890

Merged
HowardHinnant merged 1 commit into
HowardHinnant:masterfrom
botanegg:fix-deprecated-literal-operator
Aug 12, 2025
Merged

HowardHinnant merged 1 commit into
HowardHinnant:masterfrom
botanegg:fix-deprecated-literal-operator

Conversation

@botanegg

Copy link
Copy Markdown
Contributor

Still warn on clang after #884

warning: identifier '_y' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
note: expanded from macro 'OPERATOR_LITERAL' 88 | # define OPERATOR_LITERAL(suffix) operator"" _##suffix

This MR fix it

Not fully coveraging all variants of compillers but https://github.com/nemequ/hedley/blob/master/hedley.h is too big to include to date.h

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants