From c8b2ef04b3759441a6e92cee2738a27984d6e651 Mon Sep 17 00:00:00 2001 From: Olivier BICHLER <olivier.bichler@cea.fr> Date: Sun, 25 Feb 2024 09:34:26 +0100 Subject: [PATCH] Fixed bug in Node::getChildren() --- src/graph/Node.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/graph/Node.cpp b/src/graph/Node.cpp index 6f0cc5515..33f8f1838 100644 --- a/src/graph/Node.cpp +++ b/src/graph/Node.cpp @@ -288,8 +288,7 @@ std::vector<std::vector<std::shared_ptr<Aidge::Node>>> Aidge::Node::getOrderedCh std::vector<std::shared_ptr<Aidge::Node>> Aidge::Node::getChildren(const IOIndex_t outId) const { assert((outId < nbOutputs()) && "Output index out of bound."); - std::vector<std::shared_ptr<Node>> children = - std::vector<std::shared_ptr<Node>>(mChildren[outId].size()); + std::vector<std::shared_ptr<Node>> children; for (std::size_t i = 0; i < mChildren[outId].size(); ++i) { children.push_back(mChildren[outId][i].lock()); } -- GitLab