minor backend update from Raze.

This commit is contained in:
Christoph Oelckers 2023-10-17 20:54:04 +02:00
commit d65d1a3b82
3 changed files with 13 additions and 0 deletions

View file

@ -282,6 +282,11 @@ public:
return GC::ReadBarrier(o) == u;
}
constexpr bool operator==(TObjPtr<T> u) noexcept
{
return ForceGet() == u.ForceGet();
}
template<class U> friend inline void GC::Mark(TObjPtr<U> &obj);
template<class U> friend FSerializer &Serialize(FSerializer &arc, const char *key, TObjPtr<U> &value, TObjPtr<U> *);
template<class U> friend FSerializer &Serialize(FSerializer &arc, const char *key, TObjPtr<U> &value, U *);