[libc++] Fix test broken in C++03 due to requiring C++11 features from vector

This commit is contained in:
Louis Dionne 2020-06-03 12:58:50 -04:00
parent bee2c2708f
commit 2bbfa6b02b
1 changed files with 2 additions and 2 deletions

View File

@ -44,9 +44,9 @@ void helper() {
int main(int, char**)
{
notReady = threadCount;
std::vector<std::thread> threads;
std::vector<std::thread> threads(threadCount);
for (unsigned i = 0; i < threadCount; i++)
threads.emplace_back(helper);
threads[i] = std::thread(helper);
{
while (notReady > 0)
std::this_thread::yield();