Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#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