mercredi 26 février 2020

How to implement std::move() alternative if I am not using C++11?

I am working on some projects and have a problem. I have a class that is too big and don't want to copy objects and want to use a smarter solution. So, if I don't want to copy, I can move() it. But the problem is that I am not using C++11 but C++10 (as the people in my company said)

I can't use the std::move() function and have to implement it in my source code.

Can somebody help me to do that in efficient way?

Aucun commentaire:

Enregistrer un commentaire