Priority: Not Evaluated
Affects Version/s: 5.8.0
Fix Version/s: None
Component/s: Core: Other
Environment:Qt Prebuilt MSVC-2017 64bit. The Qt version is 5.8.0-1. Windows 10
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:
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.