Boost logo

Boost :

Subject: Re: [boost] [xint] Third release is ready, requesting preliminary review
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-05-03 15:43:51


----- Original Message -----
From: "Jeffrey Lee Hellrung, Jr." <jhellrung_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Monday, May 03, 2010 8:01 PM
Subject: Re: [boost] [xint] Third release is ready, requesting preliminary review

>
> 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.

Thanks for clarification. It is much better in this way.

Best,
Vicente


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