
2 Aug
2006
2 Aug
'06
6:54 a.m.
Steven Watanabe wrote:
template<class Base> struct X : boost::addable<X, Base> { ... };
Boost.Operators does not recognize Base. Therefore, (as I understand the library) it will think I mean boost::addable2<X, Base> instead of boost::addable1<X, Base>
Sure, but this a known and solved problem. Just use addable1 directly, as documented in the "Caveat" at <http://boost.org/libs/utility/operators.htm#chaining>. Regards, Daniel