dimanche 19 avril 2015

Vector inside another vector

I have the code below. It is written in C++11. How i can make it compatible to run under unix? Thanks



vector<firstVec*> codes{ &first, &sec, &third};
vector<future<void>> secondVec;
for (auto var: codes) secondVec.push_back(async([=](){var; }))

Aucun commentaire:

Enregistrer un commentaire