Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
Compiler-Generated Default Functions
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Victor Bazarov, post: 2569826"] This is called "a copy constructor", not "default copy constructor" There is no such thing as a "default destructor". There is always only one destructor. Probably just a typo. Should be: Foo &operator=(const Foo& f); And this is actually called "copy assignment operator". Yes. Yes. There is no "default" operator* for a class. If the class doesn't define its own 'new' and 'delete', the global ones are used. Also, there is no action you can take to make compiler omit those, so we usually don't count them. You *can* do something to make compiler not to generate a default c-tor, a copy-c-tor, or a copy-assignment-op. V [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
Compiler-Generated Default Functions
Top