Boost logo

Boost :

From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2008-05-28 21:59:25


On Tue, May 27, 2008 at 5:06 PM, Joachim Faulhaber
<afojgo_at_[hidden]> wrote:
> My generic library code has no problem with the 'value nature' of
> built in types. Because from the initial default constructed value
>
> unsigned int x = int(); // x = 0 you can reach
> ++x // x = 1
> ...
> ++x // x = 2^32
>
> and thus all values of the types set of values.
>
> This is not the case for boost::date_time objects like e.g.
> ptime
>

Nor is it the case for floating point numbers.

Nor, technically, for signed numbers, where overflow is impl-defined
(or worse, afaik).


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk