News for hackers. Stuff that matters.
Re:C++: Return value optimization vs. std::move by mavam on Monday July 20, 2015 @12:54PM (#9917289)
> I give my brain a break by using std::unique_ptr<HugeObject>.

Unfortunately this comes at a cost. Most notably, now you're unnecessarily stressing the allocator. But worse, you no longer enjoy the benefits of value semantics [1].

[1] https://akrzemi1.wordpress.com/2012/02/03/value-semantics/

There are no comments on this comment yet.