Skip to content

Make compile with MSVC++ 19.24

I have tested this fix with Compiler Explorer.

This commit fixes the following compilation errors: ..\kdevplatform\util\environmentprofilelist.cpp(260): error C3493: 'escapeChar' cannot be implicitly captured because no default capture mode has been specified ..\kdevplatform\util\environmentprofilelist.cpp(260): error C3493: 'variableStartChar' cannot be implicitly captured because no default capture mode has been specified ..\kdevplatform\util\environmentprofilelist.cpp(273): error C2064: term does not evaluate to a function taking 1 arguments

The Microsoft Solution for the relevant bug report https://developercommunity.visualstudio.com/content/problem/610504/lambda-fails-to-implicitly-capture-constexpr-value.html reads: "It had been fixed with /experimental:newLambdaProcessor."

I don't suppose enabling experimental flags when building KDevelop is a good idea. Let us work this compiler bug around instead: specify the default capture mode as =.

Merge request reports