How to pass unique_ptr by reference polymorphically?

前端 未结 0 337
死守一世寂寞
死守一世寂寞 2021-01-23 03:29

I have a pure virtual class Base and some derived classes ChildA (A/B/C etc.).

class Base {
    ...
}

class ChildA : public Base {
    ...
}

I n

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