This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/34449] use_facet<xxx_byname>(locale::classic()) returns true



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]