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

@@ -150,22 +150,22 @@ public:
return *this;
}
FORCE_INLINE bool operator==(T* other)
FORCE_INLINE bool operator==(T* other) const
{
return _asset == other;
}
FORCE_INLINE bool operator==(const AssetReference& other)
FORCE_INLINE bool operator==(const AssetReference& other) const
{
return _asset == other._asset;
}
FORCE_INLINE bool operator!=(T* other)
FORCE_INLINE bool operator!=(T* other) const
{
return _asset != other;
}
FORCE_INLINE bool operator!=(const AssetReference& other)
FORCE_INLINE bool operator!=(const AssetReference& other) const
{
return _asset != other._asset;
}