When will the compiler be unable to implicitly define Special functions? For example, if I understood correctly, the constructor gets deleted if you have a member variable whitout an empty constructor. What are the conditions then, for the copy/move assignment, copy/move constructor and destructor to not be deleted? If you also have some guidelines/best practices about how explicit I have to be with my special functions, that would also be great! I've tried googling the issue, but all that comes up is how to explicitly use "=delete" and "=default". Thanks in advance.
Asked
Active
Viewed 40 times
0
-
Not sure if you are looking for the reference (http://en.cppreference.com/w/cpp/language/classes) or the rule of 3/5/0 (http://en.cppreference.com/w/cpp/language/rule_of_three) – UnholySheep Mar 29 '17 at 08:28
-
See a picture in this answer: http://stackoverflow.com/a/38687106/1989995 – alexeykuzmin0 Mar 29 '17 at 08:29