mercredi 6 janvier 2016

how to copy std::future to another std::future

I'm writing a async task class: In some reason I need to copy one std::future to another.

std::future<TType> task1;
std::future<TType> task2 = task1;

But it seems I can't do this directly. How should I do?

Aucun commentaire:

Enregistrer un commentaire