mercredi 4 juillet 2018

What is going here? I assign result to result in C++

Could you tell me what is going here? And why it is possible?

std::make_unique<int>(1) = std::make_unique<int>(1);

I thought that return of make_unique is r-value...

Aucun commentaire:

Enregistrer un commentaire