Quote Originally Posted by exterminator
Does this work:
Code:
struct Base{};
template<typename T>
struct BoolAdder : Base
{ protected: static bool m_bool;};
template<typename T>
bool BoolAdder<T>::m_bool = false;
struct Derived : BoolAdder<Derived> {};
struct AnotherDerived : BoolAdder<AnotherDerived> {};
I support this method. Maybe this is the only method to solve the problem.