Fixes for C++98
[junction.git] / samples / MapCorrectnessTests / TestEnvironment.h
index 2ff9997fc9ee988f5f941ca9c8229b4023beab2a..7ef9b6b6b2ed6d220165a5d5ff603d28a8307f69 100644 (file)
@@ -30,7 +30,7 @@ struct TestEnvironment {
     TestEnvironment() : numThreads(dispatcher.getNumPhysicalCores()), adapter(numThreads) {
         TURF_ASSERT(numThreads > 0);
         for (ureg t = 0; t < numThreads; t++)
-            threads.emplace_back(adapter, t);
+            threads.push_back(MapAdapter::ThreadContext(adapter, t));
         dispatcher.kickMulti(&MapAdapter::ThreadContext::registerThread, &threads[0], threads.size());
     }