
29 May
2008
29 May
'08
1:59 a.m.
On Tue, May 27, 2008 at 5:06 PM, Joachim Faulhaber <afojgo@googlemail.com> 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).