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++
Default functions implemented by compiler
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="Andrey Tarasevich, post: 2565919"] They are not called "default" functions. They are called "implicitly declared/implicitly defined" functions. The term "default" in this context means something completely different from what you think it means (see other replies). And the term "implemented" is also unclear. They are not "implemented". They are "declared" and, if necessary, "defined" implicitly by the compiler. For a class 'A' defined as above, the compiler will implicitly _declare_ default constructor 'A::A()', copy constructor 'A::A(const A&)', copy assignment operator 'A& A::operator=(const A&)' and destructor 'A::~A()'. The compiler will implicitly _define_ the aforementioned functions only if they are used in the program. They are not used in your program. More precisely, I don't see any program at all, therefore there's no way to say whether they will be defined or not. No. See above. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
Default functions implemented by compiler
Top