How to declare and define function that will return one of few custom classes unknown at the compile time?

后端 未结 0 1948
说谎
说谎 2020-12-05 18:16

In C++ I need to create a function that will return an address to an object that will be an instance of different possible class, but I do not know at the compile time what

相关标签:
回答
  • 消灭零回复
提交回复
热议问题