I faced the same issue in Visual Studio 2019.
image1069×316 5.41 KB
The errors in my case were because of a problem with one of the C++ project properties. Specifically Properties → C/C++ → Language → Conformance mode → Yes(/permissive-)
image1477×484 17.8 KB
The default value has changed from no value to Yes(/premissive-) from Visual Studio 2017 onwards. More details can be found on this page. https://docs.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance?view=vs-2019 20
Changing the value to No solved the problem for me.
Hope this helps someone!