template <class T>
class baseRegistrator
{
public:
class init
{
public:
init()
{
Base::registerType<T>();
}
};
static init _init;
};
class bar : public base, public baseRegistrator<bar>;
baseRegistrator<bar>::init baseRegistrator<bar>::_init;