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:
parent
1780c549e5
commit
1459f0e852
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user