How do you solve the “deep copy of an abstract class” problem when you are working with an abstract class from a library?

后端 未结 0 1821
忘掉有多难
忘掉有多难 2021-01-06 06:18

I have a member pointer to an abstract class, and I ran into the common problem where I can\'t copy what the pointer is pointing to because I don\'t know what derived class

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