|
Boost : |
Subject: Re: [boost] [lexical_cast] Strange behaviour
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2009-03-18 16:08:52
On Wed, Mar 18, 2009 at 4:12 PM, <raindog_at_[hidden]> wrote:
> What exactly do you think -1 is as an unsigned int?
>
I think -1 is not an unsigned int, therefore the lexical cast is beyond
the range of the target type, and should issue an exception.
If I wanted to reinterpret a bit pattern I'd ask for it.
Regards, Rob.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk