jeudi 2 mars 2017

std::promise in place construction in set_value()

Is there a reason that the std::promise class does not have an in place constructible set_value() method (maybe an emplace_value())? This would help users avoid a move or a copy.

Aucun commentaire:

Enregistrer un commentaire