Improving Stability with Modern C++, Part 5 — Revisiting the Rule of Three

Rule of Three

Improving Stability with Modern C++, Part 5 — Revisiting the Rule of Three

by Ralph Kootker

From the article

If the programmer, following the Rule of Three, declares a copy constructor, copy-assignment operator, or destructor, the compiler will not generate any move operations. [...] Declare a move constructor or move-assignment operator only, and now the default copy constructor and copy-assignment operator won't be generated.

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.