rely on RVO instead of moving return value

This commit is contained in:
Gennadiy Rozental 2015-06-27 03:31:18 -04:00
parent efd1784bfd
commit f3bfd8f2e8

View File

@ -306,8 +306,8 @@ struct Testee {
int Testee::s_copy_counter = 0;
Testee get_obj() { return std::move( Testee() ); }
Testee const get_const_obj() { return std::move( Testee() ); }
Testee get_obj() { return Testee(); }
Testee const get_const_obj() { return Testee(); }
class NC : boost::noncopyable {
public: