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]

Re: libstdc++/3720: Problems with num_get



> would deduce octal from the leading zero, as that's what stdio "%i"
> does. Investigation shows that it is reading decimal, which is then

stdio %i is equiv behavior to basefield == 0 case only. Default is 
signed/unsigned int in the case.

> causes the number to be read correctly. I suppose it's table 89 in
> 27.4.4.1 that determines that dec is the default?  I didn't expect
> that.

See 

22.2.2.1.2 - num_get virtual functions [lib.facet.num.get.virtuals]

p4

on how input is ordered.


For this case, I believe current behavior is correct.

best,
benjamin


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