1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2024-10-27 20:34:20 +00:00

fix: spell out the constructor for gcc4.8

This commit is contained in:
Oliver Giles 2018-05-14 20:54:12 +03:00
parent f1e4d10be3
commit 180b5b7117

View File

@ -388,7 +388,7 @@ bool Laminar::loadConfiguration() {
std::string nodeName = it->path().stem().string();
auto existingNode = nodes.find(nodeName);
std::shared_ptr<Node> node = existingNode == nodes.end() ? nodes.emplace(nodeName, new Node).first->second : existingNode->second;
std::shared_ptr<Node> node = existingNode == nodes.end() ? nodes.emplace(nodeName, std::shared_ptr<Node>(new Node)).first->second : existingNode->second;
node->name = nodeName;
node->numExecutors = conf.get<int>("EXECUTORS", 6);