So here I am, compiling my CMake-based C++ Projects in my terminal like there's not tomorrow with gcc-7.2.0 on Xubuntu 16.04 (via ppa)
Everything works fine and the new features add considerable value to my codebase.
However, trying to compile the very same project in qtcreator with the same compiler yields me errors like the following
: error: expected ‘)’ before ‘;’ token if (auto event = events_.find(eventName); event == end(events_)) { ^ : error: ‘else’ without a previous ‘if’ } else { ^
if trying to compile initializer-ifs. I tried to manually pick gcc-7 in the build&run section in qtCreators options but without success. So my question is this:
What do I have to adjust in the IDE to make it conform to this latest standard?