diff --git a/VirtualRobot/Workspace/WorkspaceRepresentation.cpp b/VirtualRobot/Workspace/WorkspaceRepresentation.cpp index 7cd0a5f560bee0074f5e28dd6eb6c692c5cf7c23..e007c87c89d0241c475d9083b4cecf61b51039c2 100644 --- a/VirtualRobot/Workspace/WorkspaceRepresentation.cpp +++ b/VirtualRobot/Workspace/WorkspaceRepresentation.cpp @@ -2141,7 +2141,7 @@ namespace VirtualRobot return; } - std::thread threads[numThreads]; + std::vector<std::thread> threads(numThreads); unsigned int numPosesPerThread = loops / numThreads; // todo static const float randMult = (float)(1.0 / (double)(RAND_MAX));