C++ how to pass unique_ptr to function and still benefit from polymorphism?

前端 未结 1 1840
一整个雨季
一整个雨季 2021-01-24 14:29

I have the following class definitions:

class A {...}
class B : public class A {...}

and an owner class definition:

class C {
          


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