Fix comparison operators on object reference types

This commit is contained in:
Wojciech Figat
2022-09-09 15:29:17 +02:00
parent 07ace480ed
commit 4fa9b4a741
4 changed files with 14 additions and 14 deletions

View File

@@ -137,12 +137,12 @@ public:
return *this;
}
FORCE_INLINE bool operator==(T* other)
FORCE_INLINE bool operator==(T* other) const
{
return _asset == other;
}
FORCE_INLINE bool operator==(const WeakAssetReference& other)
FORCE_INLINE bool operator==(const WeakAssetReference& other) const
{
return _asset == other._asset;
}