Thank you, Liu Hao. There is one more static assert to fix (the first one). 
Otherwise, it looks great!

Best regards,
Jøger Hansegård

________________________________
From: LIU Hao <lh_mo...@126.com>
Sent: Saturday, March 1, 2025 7:21:01 AM
To: mingw-w64-public@lists.sourceforge.net 
<mingw-w64-public@lists.sourceforge.net>; Zach Bacon <wowzama...@gmail.com>
Cc: Jøger Hansegård <joger.hanseg...@qt.io>
Subject: Re: [Mingw-w64-public] [PATCH] Add missing comparison operators for 
Microsoft::WRL::ComPtr

在 2025-02-28 02:35, Jøger Hansegård via Mingw-w64-public 写道:
> + template <class T, class U>
> + bool operator!=(const ComPtr<T> &a, const ComPtr<U> &b) throw()
> + {
> + static_assert(__is_base_of(T, U) || __is_base_of(U, T));

Static assertion without a message is a C++17 feature; this can cause errors in 
C++11 code.

How about the attached patch?



--
Best regards,
LIU Hao


_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to