i have a big problem.. I wonna select the Storage Service via a wrapper class. The returning value must be an object within the storage service class. I pasted my current approa
Error return Auto in test(),it's return two different types. Change by StorageTemplate*
Auto
StorageTemplate*
class controller { public: StorageTemplate* test(int select) { if( select == 1) { return new SQL(); } else { return new REDIS(); } } };