How's the Copy & Swap idiom really supposed to work, seriously! My code fails

后端 未结 0 1056
后悔当初
后悔当初 2020-12-29 15:20

I have been hearing about this, very advertised way of implementing an assign operator=() in C++.

Here\'s where it seems to fail,

相关标签:
回答
  • 消灭零回复
提交回复
热议问题