Just wanted to post this here in case others wanted to use a more recent version of the C++ standard than the default 14 that Unreal enables. The latest standard is actually C++ 20, and I think VS 2019 supports it now and I’ve seen some people have success with it in Unreal as well, but I’ve been using C++17 in my other projects so at least wanted to get it updated to this version. Enabling it in Unreal is actually quite simple (at least it has worked for me so far).
In your project Source folder find the “.Build.cs>” file. e.g. “Escape.Build.cs” and add the following line to the constructor function that is already there:
CppStandard = CppStandardVersion.Cpp17;
Then for it to take effect you will want to close Visual Studio and refresh the project in the Unreal Editor:
File → Refresh Visual Studio project Files
If you get build errors initially after a rebuild, try deleting the “Binaries” folder and re-building again. This has worked well for me in the first two Unreal game sections so far.
I followed advice from this thread: What's needed for using C++17 - #2 by duke22 - C++ Gameplay Programming - Unreal Engine Forums