This is the mail archive of the gcc-help@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: Input stream with


On 19 March 2015 at 21:43, Andre-Marcel Hellmund wrote:
> The output of the program is: 7fffffff - 1
>
> In the first instance, I was somehow expecting the value of 'val' to be -1,
> so I was wondering which part of the C++ standard defines those conversion
> rules and hence explains why my expectation was totally wrong. Could someone
> please give me a hint?

[facet.num.get.virtuals] says the value stored in val is
"the most positive representable value, if the field represents a
value too large positive to be
represented in val. ios_base::failbit is assigned to err."


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