
31 Jul
2006
31 Jul
'06
4:15 p.m.
"Andy Little" <andy@servocomm.freeserve.co.uk> writes:
"David Abrahams" <dave@boost-consulting.com> wrote in message news:ulkqccd9c.fsf@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