shared children disappear
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user