[Patch] Fix the narrow/widen problem in money_get::do_get

Paolo Carlini pcarlini@suse.de
Thu Feb 26 19:13:00 GMT 2004


Martin Sebor wrote:

> As I said on the reflector the last time we discussed the issue,
> an efficient but mainly simpler implementation is possible (and
> exists -- ours) that calls narrow(), not widen(). Additionally,
> as I also pointed out in the past, the requirement Paolo refers
> to above is unimplementable for any specialization of these
> facets other than on char and wchar_t, and implementations that
> follow it only violate the standard in another area.

Honestly, I don't follow. It seems to me pretty clear that the standard
talks about widen, not about narrow (see note 237!?!) and we don't
really care what an user of the library want to do for types != char,
wchar_t (Table 51). Moreover, I don't see DRs involving 22.2.6.1.2.

Therefore we don't really have choices in the present situation.

Paolo.



More information about the Libstdc++ mailing list