Boost logo

Boost Users :

From: Stefan Schild (schilds_at_[hidden])
Date: 2006-10-05 16:51:10


Hi there

Having a templatized base class B

template<class T>
class B .....

is it possible to enforce that a class D can derive from B IF AND ONLY
IF the curiously recurring template pattern is applied, that is

class D1 : public B<D1> ... // ok, compile
class D2 : public B<X> ... // not ok, do not compile

???

Thx
Stefan


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net