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

[stdfloat.syn] Which part is implementation-defined? #6860

Open
frederick-vs-ja opened this issue Mar 18, 2024 · 0 comments
Open

[stdfloat.syn] Which part is implementation-defined? #6860

frederick-vs-ja opened this issue Mar 18, 2024 · 0 comments

Comments

@frederick-vs-ja
Copy link
Contributor

It seems that the synopsis indicates unnecessary uncertainty. E.g., whenever std::float16_t is supported, we can always declare typedef-name as using float16_t = decltype(0.0f16);.

It doesn't make much sense to document the exact spelling used by the implementation, on which the difference is unobservable. And it should be possible to replace the implementation-defined parts with certain decltype-specifiers (namely decltype(0.0f16), decltype(0.0f32), decltype(0.0f64), decltype(0.0f128), and decltype(0.0bf16) or somthing like).

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

No branches or pull requests

1 participant