Skip to content
Snippets Groups Projects
Commit 2f8b4687 authored by Mark Winter's avatar Mark Winter
Browse files

Linux compile fix (std::make_unique is a c++14 feature)

parent ef61b813
Branches
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ void updateGInEdges(CSourcePath& path)
if (gTrackerData.connectIn[nextGIdx].count(startGIdx) == 0)
{
gTrackerData.pathList.push_back(std::make_unique<CSourcePath>(path));
gTrackerData.pathList.push_back(std::unique_ptr<CSourcePath>(new CSourcePath(path)));
CSourcePath* p = gTrackerData.pathList.back().get();
gTrackerData.connectIn[nextGIdx].insert({startGIdx,p});
......@@ -215,7 +215,7 @@ void BuildBestPaths(std::map<CellID,CellID>& bestInEdges, int t)
if ( i >= bestEdges.size() )
break;
workers[i] = std::make_unique<std::thread>(threadedBestPaths, &gdbPool[i], std::ref(bestEdges), i, gnThreads);
workers[i] = std::unique_ptr<std::thread>(new std::thread(threadedBestPaths, &gdbPool[i], std::ref(bestEdges), i, gnThreads));
}
// Wait for threads to finish
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment