|
Boost : |
Subject: Re: [boost] [xint] Third release is ready, requesting preliminary review
From: Jeffrey Lee Hellrung, Jr. (jhellrung_at_[hidden])
Date: 2010-05-03 14:01:43
On 5/3/2010 10:52 AM, DE wrote:
> on 03.05.2010 at 21:39
> vicente.botet wrote :
>>> If they weren't defined, could generic code work with them? The GCC
>>> specialization for the int type includes all of the members, even the
>>> ones that are only applicable to floating-point values, so I did too.
>
>> How generic code could work if the returned values are not
>> applicable, not significant. I would prefer a compile error than a runtime error.
>> ...
>
> std::numeric_limits comes from C++ standard
> so you must consult the standard to figure out why is
> std::numeric_limits designed the way it is
>
I think if std::numeric_limits<T>::is_bounded is false, then min and max
are "defined" to be meaningless.
- Jeff
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk