In file included from main.cpp:17:0:
factory.h: In static member function 'static Object* Factory::Create(const string&)':
factory.h:30:24: error: 'Apple' does not name a type
return new Apple;
^~~~~
factory.h:32:24: error: 'List' does not name a type; did you mean 'uint'?
return new List;
^~~~
uint
factory.h:34:24: error: 'YetAnotherId' does not name a type
return new YetAnotherId;
^~~~~~~~~~~~
factory.h:37:28: error: expected type-specifier before 'Smth'
return new Smth(class_id);
^~~~
factory.h:37:28: error: expected ';' before 'Smth'
factory.h:37:28: error: 'Smth' was not declared in this scope
|