Use this tag for questions involving types from the C++23 header and the corresponding C23 types. The header provides aliases for extended precision floating-point types such as std::float128_t. These are ABI-compatible with C types, such as _Float128.
I have the following code, which doesn't compile with x86_64 GCC 13:
#include
#include
int main() {
std::cout << std::float128_t{1} << '\n';
}
This gives me the following error:
: In function 'int…
C23 introduced a number of floating point types, including but not limited to:
_Float32
_Float32x
_Float32_t
I am unsure of the differences, such as:
Are they keywords, or are they type aliases, or something else?
Are they distinct types, or can…