Layout refactoring: C++ part

This commit is contained in:
Olivier Goffart 2021-05-06 14:17:24 +02:00 committed by Olivier Goffart
parent 539a78e807
commit ba1aff84d0
8 changed files with 334 additions and 608 deletions

View file

@ -133,7 +133,7 @@ public:
return a.inner == b.inner;
}
friend bool operator!=(const VRc &a, const VRc &b) {
return a.inner == b.inner;
return a.inner != b.inner;
}
};
@ -169,6 +169,13 @@ public:
}
VWeak<VTable, Dyn> into_dyn() const { return *reinterpret_cast<const VWeak<VTable, Dyn> *>(this); }
friend bool operator==(const VWeak &a, const VWeak &b) {
return a.inner == b.inner;
}
friend bool operator!=(const VWeak &a, const VWeak &b) {
return a.inner != b.inner;
}
};