Boost logo

Boost :

From: Mark Rodgers (mark.rodgers_at_[hidden])
Date: 2000-06-15 03:34:28

From: Aleksey Gurtovoy <alexy_at_[hidden]>
> One more situation when you still need the inheritance approach is when
> write a class template like boost::geometry2d::point:
> template<class T1, class T2 = T1>
> class point
> : addable< point<T1, T2>
> , subtractable< point<T1, T2>
> > >
> {
> //...
> };

Yes, I think you are right - I can't see any way around it yet.

So it certainly looks as though we need your nifty solution - we
just need to make it more Borland-friendly and eliminate the
bool template parameter.


Boost list run by bdawes at, gregod at, cpdaniel at, john at