From 180b5b7117c041ca805fdf56ab79bb8234222c4b Mon Sep 17 00:00:00 2001 From: Oliver Giles Date: Mon, 14 May 2018 20:54:12 +0300 Subject: [PATCH] fix: spell out the constructor for gcc4.8 --- src/laminar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/laminar.cpp b/src/laminar.cpp index 5121d90..4aa3ae6 100644 --- a/src/laminar.cpp +++ b/src/laminar.cpp @@ -388,7 +388,7 @@ bool Laminar::loadConfiguration() { std::string nodeName = it->path().stem().string(); auto existingNode = nodes.find(nodeName); - std::shared_ptr node = existingNode == nodes.end() ? nodes.emplace(nodeName, new Node).first->second : existingNode->second; + std::shared_ptr node = existingNode == nodes.end() ? nodes.emplace(nodeName, std::shared_ptr(new Node)).first->second : existingNode->second; node->name = nodeName; node->numExecutors = conf.get("EXECUTORS", 6);