std::reduce not known with C++17 enabled
-
I have a large project in Creator, configured to use Qt 5.15.1 with MinGW 8.1.0 64bit.
The project files has
CONFIG += c++17
However, Creator shows a semantic issue
no member named 'reduce' in namespace 'std'
Any ideas what I could try?
-
@Asperamanca said in std::reduce not known with C++17 enabled:
However, Creator shows a semantic issue
QtCreator or the compiler?
-
@Christian-Ehrlicher
QtCreator. Probably from the clang backend
However, the selected kit is relevant, because switching to MSVC-based toolchain makes the semantic issue disappear.I have wondered whether
a) Enabling c++17 for MinGW isn't that straightforward (been there in the past, but can't remember the details)
b) The MinGW shipped with Qt 5.15.1 isn't fully c++17 compliant (I'd love to check the MinGW docs, but they are a right mess - there's nothing like an easy-to-find release notes list for version)