Skip to content

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

2 participants