I have updated to the latest SDK for Connect which has a default toolset requirement of VS2019 or better. As such, I would expect that c++17 or c++20 features would be recognized.
When trying to use c++17 features,
const std::string myString = "My Hello World Wow"; if (const auto it = myString.find("World"); it != std::string::npos) std::cout << it << " World\n"; else std::cout << it << " not found!!\n";
I am getting a build error
error C2429: language feature 'init-statements in if/switch' requires compiler flag '/std:c++17'
Are the newer iterations of c++ supported by the latest SDK, and if so how would I go about modifying the makefile to add the compiler flag?
Thanks!