shared children disappear

This commit is contained in:
Сергей Маринкевич
2025-07-21 19:28:17 +07:00
parent b2be9b51ca
commit 44480a7128
5 changed files with 43 additions and 222 deletions
+4
View File
@@ -13,6 +13,10 @@ public:
void removeChild(const LinkPtr& child) override {
children_.erase(std::remove(children_.begin(), children_.end(), child), children_.end());
}
~BaseLink() override {
std::cout << "--- Destructor called for: " << "BaseLink" << "\n";
}
protected:
std::vector<LinkPtr> children_;
std::weak_ptr<INode> owner_node_;