This change doesn’t fix it. You need to amend the Build Tool chain file at
Engine/Source/Programs/UnrealBuildTool/Windows/VCToolChain.cs
Add the line as marked below :
// Disable Microsoft extensions on VS2017+ for improved standards compliance.
if (Compiler >= WindowsCompiler.VisualStudio2017)
{
Arguments.Add("/permissive-");
Arguments.Add("/Zc:twoPhase-"); // <-- ADD THIS LINE
Arguments.Add("/Zc:strictStrings-"); // Have to disable strict const char* semantics due to Windows headers not being compliant.
}
Then rebuild your project.