Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualTheComet

Posted 03 February 2014 - 08:33 AM

Correct me if I'm wrong, but there's little point in calling std::move on an lvalue (as is the case in your code).

 

It'd make more sense like this:

vector<Test> v;
v.push_back(std::move(Test()));

see below.


#1TheComet

Posted 03 February 2014 - 08:09 AM

Correct me if I'm wrong, but there's little point in calling std::move on an lvalue (as is the case in your code).

 

It'd make more sense like this:

vector<Test> v;
v.push_back(std::move(Test()));

PARTNERS