Skip to content
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

docs(litertals): add comment on compiler differences #902

Closed
vaeng opened this issue Sep 12, 2024 · 0 comments · Fixed by #907
Closed

docs(litertals): add comment on compiler differences #902

vaeng opened this issue Sep 12, 2024 · 0 comments · Fixed by #907

Comments

@vaeng
Copy link
Contributor

vaeng commented Sep 12, 2024

          Yeah, I should have probably opened a separate PR for this. The `d` suffix is not part of the [C++ standard](https://en.cppreference.com/w/cpp/language/floating_literal) it seems:

suffix, if present, is one of f, l, F, L, f16, f32, f64, f128, bf16, F16, F32, F64, F128, BF16(since C++23).

ChatGPT claims it was a common thing, but I have never seen it before and apparently it is only supported by GCC. Clang and MSVC report an error.

Originally posted by @ahans in #856 (comment)

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 a pull request may close this issue.

1 participant