Boost logo

Boost :

From: Daniel Frey (d.frey_at_[hidden])
Date: 2006-08-02 02:54:10


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


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