undefined reference to `test(Enum)'
class Base { public: virtual void show() = 0; }; class child1 : public Base { public: void show(){ cout<<"Hello"<<endl; }; }; enum Enum { child1,child2, }; int main() { Base* test(Enum); auto the_test =test(child1); the_test->show(); return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)