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

Paolo Carlini pcarlini@suse.de
Thu Feb 26 21:22:00 GMT 2004


Martin Sebor wrote:

> If implementions simply chose to disregard a reasonable requirement
> in the standard and provided an alternative reasonable behavior,
> the document is irrelevant and existing practice is what matters.

Probably, tomorrow you will re-read this and will admit that it doesn't
make any sense, especially for a member of the Working Group.

> Since changing the implementations would break programs that rely
> on that behavior I think the burden of proof should be on those
> advocating a change to existing implementations to demonstrate
> that their behavior is harmful. If neither is, existing practice
> wins :)

I want only to point out that the concerned behavior (involving widening
in advance and comparing via traits::find) was already in 3.2 and nobody
filed a PR about that in the last year and half or so.

Humbly, taking into account the size of the gcc users base, this point 
should
be not disregarded, when talking about "existing practice".

Paolo.



More information about the Libstdc++ mailing list