2295. Locale name when the provided Facet is a nullptr

Section: [locale.cons] Status: New Submitter: Juan Soulie Opened: 2013-09-04 Last modified: 2016-02-10

Priority: 3

View all issues with New status.

Discussion: [locale.cons] p14 ends with:

"[…] If f is null, the resulting object is a copy of other."

but the next line p15 says:

"Remarks: The resulting locale has no name."

But both can't be true when other has a name and f is null.

I've tried it on two implementations (MSVC,GCC) and they are inconsistent with each other on this.

Daniel Krügler:

As currently written, the Remarks element applies unconditionally for all cases and thus should "win". The question arises whether the introduction of this element by LWG 424 had actually intended to change the previous Note to a Remarks element. In either case the wording should be improved to clarify this special case.

Proposed resolution: