Reduce the use of unsafe in corelib and in the rust backend

This commit is contained in:
Olivier Goffart 2020-06-12 19:03:15 +02:00
parent bbb2b487b9
commit 30b201d946
12 changed files with 89 additions and 122 deletions

View file

@ -26,3 +26,10 @@ struct VRef {
const void *instance;
};
*/
template<typename Base, typename T>
struct VOffset
{
const T *vtable;
uintptr_t offset;
};