3 ms·
I think it was Dave Abrahams who first brought up the issue of destructors with side effects and their implications for move semantics. For example, a destructo
by thebear 12y ago
I think it was Dave Abrahams who first brought up the issue of destructors with side effects and their implications for move semantics. For example, a destructor may have the side effect of releasing a lock. If I remember correctly, Dave's advice was to write your move operations in such a way that they always perform at least those destructor actions that have side effects. I seem to remember that he discussed this on his cpp-next blog, but the site appears to be down. Does anybody know if those blog posts are available somewhere?
- meetingcpp 12y agocpp-next seems to be lost, at least for the web, but you still can access its content at the webarchive.org.