
9 Mar
2011
9 Mar
'11
7:27 p.m.
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