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.
std::promise
set_value()
emplace_value()
Aucun commentaire:
Enregistrer un commentaire