How does copy constructor work?

后端 未结 5 821
感动是毒
感动是毒 2021-01-17 01:12

How does a copy constructor work in c++

Error 1 error C2064: term does not evaluate to a function taking 1 arguments c:\\users\\thuan\\dropbox\\homework\\css

5条回答
  •  滥情空心
    2021-01-17 01:36

    as the argument of copy constructor is a constant object and in code while calling it you are passing non constant object which is not permissible .

提交回复
热议问题