Discussion:
little questions
Graziano Servizi
2014-09-01 13:58:51 UTC
Permalink
Aren't declared yet in std the

hexfloat
defaultfloat

C++11 manipulators?

It is planned to introduce them?

I ask this because the statement

std :: cout << 0x1.8p-1 << std :: endl;

is recognized by the 4.8.3 release of the gcc/g++ compiler and prints
out (correctly) 0.75 while the "opposite"
(which I argued could print 1.8p-1)

std :: cout << std :: hexfloat << 0.75 << std :: endl;

is considered erroneous: the compiler claims hexfloat being not declared
(all reasonable headers were been included).

Thanks

G. Servizi
Jonathan Wakely
2014-09-01 14:34:20 UTC
Permalink
Post by Graziano Servizi
Aren't declared yet in std the
hexfloat
defaultfloat
C++11 manipulators?
It is planned to introduce them?
Yes, there is a patch from earlier this year (see the libstdc++ list
archives) that still needs to be applied.

It's on my TODO list.

Loading...