I have following scenario:
class my_base { ... }
class my_derived : public my_base { ... };
template<typename X>
struct my_traits.
I want to specialize my_traits
all classes derived from my_base
including: i.e.
template<typname Y> // Y is derived form my_base.
stryct my_traits { ... };
I have no problems to add any tags, members to my_base
to make it simpler. I've seen some trick but I still feel lost.
How can this be done is simple and short way?