J
John Salmon
It is widely acknowledged that C++ is moving toward greater
compatibility with C99. Great! Where can I find the details?
I'm particularly interested in support for hexadecimal floating point
constants.
I have found the TR1 document which describes new library features
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf
which describes a new 'hexfloat' manipulator and incorporates by
reference the C99 format conversion specifiers: %a and %A.
But what about literal floats in program text? Will I be able
to write:
float x = 0x1.ap+0;
in a standards conforming C++ program at some point? I can already
do this with some (most?) compilers, but I find myself battling the
"standards compliance police". Is there a draft or a proposal,
or something that I can reference, so at least I can say "This works
with the compilers we're using today, and it is on track to be standardized
in the future, so there's an awfully good chance it will continue to
work for as long as we need it."
Thanks,
John Salmon
compatibility with C99. Great! Where can I find the details?
I'm particularly interested in support for hexadecimal floating point
constants.
I have found the TR1 document which describes new library features
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf
which describes a new 'hexfloat' manipulator and incorporates by
reference the C99 format conversion specifiers: %a and %A.
But what about literal floats in program text? Will I be able
to write:
float x = 0x1.ap+0;
in a standards conforming C++ program at some point? I can already
do this with some (most?) compilers, but I find myself battling the
"standards compliance police". Is there a draft or a proposal,
or something that I can reference, so at least I can say "This works
with the compilers we're using today, and it is on track to be standardized
in the future, so there's an awfully good chance it will continue to
work for as long as we need it."
Thanks,
John Salmon