When I create a new class using the "Add New Class" tool, select class and give it a name (eg. A), I get these lines in the header file:
A( const A&c );
A& operator=( const A&c );
What do these lines actually do?
I have 2 classes (defined using Add New Class), and if I want to return class A from a function in class B, it throws an error because of these lines.
B.h:In file included from
A.h:In member function 'A B::getA()'
A.h:38:2: error: 'A::A(const A&)' is private
:A( const A&c );
B.cpp:81:9: error: within this context
Goes away if I comment these lines out.