Friday, June 17, 2011

t.cxx:21: error: too many initializers for ‘const __class_type_info_pseudo’

#include

struct ResourceMonitorClient { };

template struct ResourcePool : public ResourceMonitorClient {
virtual ~ResourcePool() { }
};

template struct BaseWriter {

BaseWriter() {
typeid(ResourcePool*);
}

virtual void run() {
ResourcePool pool;
}

};

BaseWriter b;

No comments: