More work on the vtable crate

This commit is contained in:
Olivier Goffart 2020-05-14 18:22:45 +02:00
parent aa27fceb8c
commit 1ced4224b5
5 changed files with 338 additions and 211 deletions

View file

@ -0,0 +1,18 @@
template<typename T>
struct VBox {
T *vtable;
void *instance;
};
template<typename T>
struct VRef {
T *vtable;
void *instance;
};
template<typename T>
struct VRefMut {
T *vtable;
void *instance;
}