lundi 25 avril 2016

What is the difference between std::tie and std::make_tuple with std::ref arguments?

Is there any semantic difference between writing the expression

std::tie( x, y, z )

and the following expression?

std::make_tuple( std::ref(x), std::ref(y), std::ref(z) )

If so, what are the differences?

Aucun commentaire:

Enregistrer un commentaire