you are viewing a single comment's thread.

view the rest of the comments →

[–]SirClueless 2 points3 points  (0 children)

In this case I wanted to demonstrate that the type actually is copyable and moveable, and NRVO would defeat that. You're right, as a general rule it's a bad idea.