Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.8.0
-
None
-
Qt Prebuilt MSVC-2017 64bit. The Qt version is 5.8.0-1. Windows 10
Description
I am using Qt Prebuilt with MSVC-2017 64bit. The Qt version is 5.8.0-1. Building VTK and CMake with the release version of VS 2017.
This error occurs: 'error C3615: constexpr function QAlgorithmsPrivate::qt_builtin_ctz' cannot result in a constant expression.
This is unrelated to this patch that is already merged in 5.8 branch: https://codereview.qt-project.org/#/c/177743/
Here is a possible fix:
The problem relates to the Qt macro:
Q_DECL_CONSTEXPR
One possible solution is to comment it out in lines 593 to 714 of qalgorithms.h then the builds work for CMake and VTK and any other Qt build using VS2017. I have attached qalgorithms.h with these changes.
Attachments
Issue Links
- is replaced by
-
QTBUG-57086 Support Visual Studio 2017 (formerly known as "Visual Studio 15")
- Closed