在 2024-08-12 09:38, Rafael Kitover 写道:
On inclusion of the header `comutil.h` errors such as:

include/comutil.h:413:3: error: '_variant_t::_variant_t(unsigned int)' cannot 
be overloaded with '_variant_t::_variant_t(unsigned int)'

, are produced because some methods are duplicates via a type alias.

Do such errors occur only on Cygwin or MSYS2?

The constructor taking `unsigned __LONG32` initializes the variant to `VT_UI4`, while the constructor taking `unsigned int` initializes the variant to `VT_UINT`. They do not do the same thing.

If it's a special case for Cygwin or MSYS2 then I would like to add a specific 
`#if ...` for them.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to