Add the #[pin] attribute to be able to project to the pinned item

This commit is contained in:
Olivier Goffart 2020-06-25 12:17:32 +02:00
parent 9ed660926c
commit f50a705e00
9 changed files with 32 additions and 16 deletions

View file

@ -30,7 +30,9 @@ struct VRef {
};
*/
template<typename Base, typename T>
struct PinnedFlag;
template<typename Base, typename T, typename Flag = void>
struct VOffset
{
const T *vtable;