You can't instantiate an object of a pure virtual class. You can only instantiate from a class that defines the virtual functions. Consider



struct my {
virtual int get() = 0;
};

struct...