Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
None
-
6.2
-
None
Description
MSVC 16.10 and MSVC 16.11 have a bug, which prevents implicit casts from `consteval` functions. Therefore, the compiler fails to compile sources using qproperty.h: QPropertyBinding<T> setBinding(...);
The code: const QPropertyBindingSourceLocation &location = QT_PROPERTY_DEFAULT_BINDING_LOCATION
Fails to compile with Error C7595.
I propose to make the cast explicit.
Alternatively wait, until Microsoft fixes that.
For reference, I created a bugreport on https://developercommunity.visualstudio.com/t/consteval-is-still-broken-1610-1611-prev-when-init/1437213 .