Boost logo

Boost :

Subject: Re: [boost] [XInt] Review
From: Jeffrey Lee Hellrung, Jr. (jhellrung_at_[hidden])
Date: 2011-03-09 14:27:59


On 3/9/2011 11:14 AM, Steven Watanabe wrote:
> AMDG
>
> On 03/09/2011 10:11 AM, Joachim Faulhaber wrote:
>> 3.2.3 Specialization of boost::is_integral<T>
>> =============================================
>>
>> You'd have to provide an instantiation of boost type trait
>> boost::is_integral for xint::integral_t, so meta code that is
>> implemented for all intergal types will be able to work with xint
>> instantly.
>
> I disagree. xint::integer_t is not an integral type
> as defined by the standard. [basic.fundamental]

+1

One would need an alternate metafunction for such purposes.
std::numeric_limits<T>::is_specialized &&
std::numeric_limits<T>::is_integer ?

- Jeff


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