Title
moneypunct::frac_digits returns int not unsigned
Status
nad
Section
[locale.moneypunct.members] [locale.moneypunct.virtuals]
Submitter
Ray Lischner

Created on 2002-08-08.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

Regardless of whether the return value is int or unsigned, it's always conceivable that frac_digits might return a nonsensical value. (Is 4294967295 really any better than -1?) The clients of moneypunct, the get and put facets, can and do perform range checks.

Date: 2002-08-08.00:00:00

In section [locale.moneypunct.members], frac_digits() returns type "int". This implies that frac_digits() might return a negative value, but a negative value is nonsensical. It should return "unsigned".

Similarly, in section [locale.moneypunct.virtuals], do_frac_digits() should return "unsigned".

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2399
2002-08-08 00:00:00admincreate