Skip to content

<xiosbase>: Non-conforming extension ios_base::hexfloat #3296

Closed

Description

Describe the bug

MSVC STL provides ios_base::hexfloat, which is probably non-conforming.

static constexpr _Fmtflags hexfloat = static_cast<_Fmtflags>(0x3000); // added with TR1 (not in C++11)

And the comment seems wrong as ios_base::hexfloat is not a part of TR1. It was stated in the final draft of TR1 (WG21-N1836) that:

[Note: Adding the format flag hexfloat to class ios_base cannot be done without invading namespace std, so only the named manipulator is provided. Note also that the more obvious use of ios_base::hex to specify hexadecimal floating-point format would change the meaning of existing well defined programs. C++2003 gives no meaning to the combination of fixed and scientific. —end note]

Should we remove it (maybe in vNext) or make it conforming with an LWG issue or a paper?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixedSomething works now, yay!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

        翻译: