[Bug libstdc++/34449] use_facet<xxx_byname>(locale::classic()) returns true
sebor at roguewave dot com
gcc-bugzilla@gcc.gnu.org
Fri Dec 14 19:36:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list