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

Support C++23 fixed-width floating point types #47

Merged
merged 1 commit into from
Sep 20, 2023
Merged

Support C++23 fixed-width floating point types #47

merged 1 commit into from
Sep 20, 2023

Conversation

alugowski
Copy link
Owner

C++23 offers fixed-width floating point types std::float16_t through std::float128_t and std::bfloat16_t.

See https://en.cppreference.com/w/cpp/types/floating-point

This enables support for those types with the assumption that the <charconv> methods support the types. That is true for the only compiler with support for these types, GCC 13. The only exception is std::float128_t, which AFAIK has no string conversion methods in GCC 13's standard library.

Fixes #45

@alugowski alugowski merged commit caf3441 into main Sep 20, 2023
@alugowski alugowski deleted the cpp23 branch September 20, 2023 01:28
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.

Test C++23 Fixed width floating-point types
1 participant