[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost
Subject:    Re: [boost] [mpl] Integral Constant is over specified
From:       Aleksey Gurtovoy <agurtovoy () meta-comm ! com>
Date:       2006-07-31 23:52:20
Message-ID: m164hdgwnf.fsf () meta-comm ! com
[Download RAW message or body]

David Abrahams writes:
> "Andy Little" <andy@servocomm.freeserve.co.uk> writes:
>> The std version doesnt specify the tag, nor does the boost
>> type_traits version in its documentation. Without the tag,
>> boost::integral_constant would not work with mpl types such as
>> equal_to as demonstrated in another mail in this thread. Therefore
>> changing from boost::integral_constant to std::integral_constant
>> will break code that uses mpl. Maybe its not important, but the
>> innocent std:: integral_constant will appear to be bug ridden.
>
> I see no requirement that a `tag' type member be included in
> http://boost.org/libs/mpl/doc/refmanual/integral-constant.html.
> However, it does look like the current implementation of equal_to
> depends on the presence of `tag'.  I'm not sure what the plan was
> here; Aleksey?

Please see http://article.gmane.org/gmane.comp.lib.boost.devel/146324.

-- 
Aleksey Gurtovoy
MetaCommunications Engineering

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic