|
Boost : |
From: Gavin Collings (gcollings_at_[hidden])
Date: 2000-02-22 05:44:57
>
> [Microsoft got it wrong.]
>
> Is that because runtest<> ist a template function, or because
> std::numeric_traits<> is busted on MSVC?
>
The problem was that it doesn't deal very well with explicit calls to
specializations of the test function ( runtest<bool>( "bool" ) ). I've
just gone through and done it manually. The results are now: -
Checking bool; min is 0, max is 1
Checking char; min is -128, max is 127
Checking signed char; min is -128, max is 127
Checking unsigned char; min is 0, max is 255
Checking short; min is -32768, max is 32767
Checking unsigned short; min is 0, max is 65535
Checking int; min is -2147483648, max is 2147483647
Checking unsigned int; min is 0, max is 4294967295
Checking long; min is -2147483648, max is 2147483647
Checking unsigned long; min is 0, max is 4294967295
Gavin.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk