How do I Avoid Using the Copy Constructor in A Setter

前端 未结 0 1871
夕颜
夕颜 2020-11-29 15:26

Apologies if this is a basic question, I am new to C++. Let us say I have 2 classes, A and B, defined as below:

class A {
    public:
        A(int i) { a = i         


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