Add ability to get the parent item from the vtable

(still untested)
This commit is contained in:
Olivier Goffart 2021-01-26 10:29:24 +01:00
parent 1fda2e1c99
commit c2982d9ab3
10 changed files with 356 additions and 209 deletions

View file

@ -167,6 +167,8 @@ public:
inner->strong_ref++;
return { VRc<VTable, X>(inner) };
}
VWeak<VTable, Dyn> into_dyn() const { return *reinterpret_cast<const VWeak<VTable, Dyn> *>(this); }
};