Re: [boost] Boost.Operators base class chaining

AMDG Daniel,
The only case I can think of that won't work is the unnumbered forms of binary operators.
Can you provide an example?
Regards, Daniel
Sure. 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> In Christ, Steven Watanabe

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
participants (2)
-
Daniel Frey
-
Steven Watanabe