compiler generated constructors [duplicate]
问题 This question already has answers here : Conditions for automatic generation of default/copy/move ctor and copy/move assignment operator? (3 answers) Closed 2 years ago . This is just a quick question to understand correctly what happens when you create a class with a constructor like this: class A { public: A() {} }; I know that no default constructor is generated since it is already defined but are copy and assignment constructors generated by the compiler or in other words do i need to