--- core/fxcrt/retain_ptr.h +++ core/fxcrt/retain_ptr.h @@ -135,6 +135,7 @@ mutable intptr_t m_nRefCount = 0; }; +#if __cplusplus < 202002L template inline bool operator==(const U* lhs, const RetainPtr& rhs) { return rhs == lhs; @@ -144,6 +144,7 @@ inline bool operator!=(const U* lhs, const RetainPtr& rhs) { return rhs != lhs; } +#endif } // namespace fxcrt