Skip to content
Snippets Groups Projects
Commit cbe930af authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Fixed critical issue with Node::views()

parent ad95ad6e
No related branches found
No related tags found
2 merge requests!152Update Aidge export to take a graph view has an argument instead of a...,!139Multiple fixes
...@@ -252,7 +252,9 @@ public: ...@@ -252,7 +252,9 @@ public:
inline std::set<std::shared_ptr<GraphView>> views() const noexcept { inline std::set<std::shared_ptr<GraphView>> views() const noexcept {
std::set<std::shared_ptr<GraphView>> res; std::set<std::shared_ptr<GraphView>> res;
for (const auto &v : mViews) { for (const auto &v : mViews) {
res.insert(v.lock()); if (auto p = v.lock()) {
res.insert(p);
}
} }
return res; return res;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment