Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1287

Comment by HolyBlackCat on How to handle conflict between virtual destructor and "Rule of 0"?

$
0
0
"What should a Derived1 instance do to copy (or move from) a Derived2 instance?" This is not for Base to decide. It should copy its own members, and let the derived classes copy theirs. It might be desirable to support copying/moving one Derived1 to another.

Viewing all articles
Browse latest Browse all 1287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>