22 Oct 2015 by Member 12034185
I tried to implement a templated factory pattern but could not get it to work. Not sure if this was because I used smart pointers.This is my code: class ObjMgr { public: static ObjMgr & Instance(); template void Register(const char*...