1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +01:00

[util] Fix != and == operator for private/public COM pointers

This commit is contained in:
Philip Rebohle 2019-11-02 13:06:28 +01:00
parent 1780c549e5
commit 1459f0e852
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -105,8 +105,10 @@ namespace dxvk {
T** operator & () { return &m_ptr; }
T* const* operator & () const { return &m_ptr; }
bool operator == (const Com<T>& other) const { return m_ptr == other.m_ptr; }
bool operator != (const Com<T>& other) const { return m_ptr != other.m_ptr; }
template<bool Public_>
bool operator == (const Com<T, Public_>& other) const { return m_ptr == other.m_ptr; }
template<bool Public_>
bool operator != (const Com<T, Public_>& other) const { return m_ptr != other.m_ptr; }
bool operator == (const T* other) const { return m_ptr == other; }
bool operator != (const T* other) const { return m_ptr != other; }