r/cpp • u/stanimirov • Jul 04 '18
Be Mindful with Compiler-Generated Move Constructors
https://ibob.github.io/blog/2018/07/03/compiler-generated-move/
86
Upvotes
r/cpp • u/stanimirov • Jul 04 '18
View all comments
Show parent comment
2
u/miki151 gamedev Jul 04 '18
Wouldn't that code be broken by C++11 anyway? The default move constructor wouldn't know it should allocate anything.