-
Notifications
You must be signed in to change notification settings - Fork 283
[libcu++] Enable complex literals #6252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
// NOTE: if you get a warning from GCC <7 here that "literal operator suffixes not preceded by ‘_’ are reserved for | ||
// future standardization" then we are sorry. The warning was implemented before GCC 7, but can only be disabled since | ||
// GCC 7. See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69523 | ||
_CCCL_API constexpr complex<long double> operator""il(long double __im) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my understanding is that we don't support GCC <7, we can get rid of
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah
// gcc < 8 warns about it's extended literals being shadowed by the implementation, so let's just disable the complex | ||
// literals | ||
#if !_CCCL_COMPILER(GCC, <, 8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to disable the literals for gcc 7 and older..
/ok to test 37aa7fe |
🥳 CI Workflow Results🟩 Finished in 4h 43m: Pass: 100%/84 | Total: 1d 10h | Max: 2h 47m | Hits: 85%/212114See results here. |
No description provided.