sinpeople Messages: 29 Registered: October 2020 Location: Singapore
Promising Member
Hi folks,
Newbie here.
I got this "call to implicitly-deleted copy constructor" error in this very simple program.
The error changes to "no matching constructor for initialization of xxx" after I added a copy constructor into the class. Adding a default constructor explicitly into the code didn't get rid of this new error.
The code is attached with the copy constructor and default constructor in comment. If the .push_back statement is commented, no error will show up. I guess it has something to do with the containers, which i am not familiar at all.
Please help me. Thank you very much!
Best Regards
David
============================================================ ===