Make the parent_item function work with repeater component

This commit is contained in:
Olivier Goffart 2021-11-01 16:11:38 +01:00
parent 7de0918f0d
commit 789ac719eb
2 changed files with 24 additions and 7 deletions

View file

@ -142,6 +142,7 @@ public:
friend bool operator!=(const VRc &a, const VRc &b) {
return a.inner != b.inner;
}
const VTable *vtable() const { return inner->vtable; }
};
template<typename VTable, typename X = Dyn>
@ -183,6 +184,7 @@ public:
friend bool operator!=(const VWeak &a, const VWeak &b) {
return a.inner != b.inner;
}
const VTable *vtable() const { return inner ? inner->vtable : nullptr; }
};