Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-07-31 12:15:46


"Andy Little" <andy_at_[hidden]> writes:

> "David Abrahams" <dave_at_[hidden]> wrote in message
> news:ulkqccd9c.fsf_at_boost-consulting.com...
>
> Also perhaps boost::integral-constant (the type_traits version) should then be
> changed to implement only the requirements of the std::integral_constant... IOW
> not derive from mpl::integral_c ?

I believe that derivation is important, at least for a while (and
perhaps forever), to avoid
breaking user code. I've written plenty of code like this:

         void f(mpl::true_) { ... }
         void f(mpl::false_) { ... }

         f(is_pointer<X>())

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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