This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/34449] use_facet<xxx_byname>(locale::classic()) returns true
- From: "sebor at roguewave dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Dec 2007 19:35:24 -0000
- Subject: [Bug libstdc++/34449] use_facet<xxx_byname>(locale::classic()) returns true
- References: <bug-34449-1186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from sebor at roguewave dot com 2007-12-14 19:35 -------
(In reply to comment #3)
That's an interesting interpretation. I agree it's possible although I suspect
it was not intended. IMO, the _byname facets are really an implementation
detail that was exposed just to show how the facet machinery was meant to be
implemented. The other gaping hole in the spec, besides the missing requirement
that a named locale actually use the _byname facets, is the effects of their
constructors. I.e., what do I get when I invoke
std::ctype_byname<wchar_t>("en_US.ISO-8859-1")? (Do I get the same behavior I
with the ctype facet in locale("en_US.ISO-8859-1") or something else?)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34449