C++ how to replace constructor switch?

后端 未结 4 2037
执念已碎
执念已碎 2021-01-23 05:07

I would like to replace big switch with something more elegant.

class Base
{
public:
  Base(void*data, int size);
  virtu         


        
4条回答
提交回复
热议问题