In a fresh "Blank" project setting "CppStandard = CppStandardVersion.Cpp20;" in "*.Build.cs" leads to compile errors:
0>/opt/unreal-engine/Engine/Source/Runtime/Core/Public/Math/SHMath.h:39:38: Error : arithmetic between different enumeration types ('TSHVector<2>::(unnamed enum at Runtime/Core/Public/Math/SHMath.h:37:2)' and 'TSHVector<2>::(unnamed enum at Runtime/Core/Public/Math/SHMath.h:38:2)') is deprecated [-Werror,-Wdeprecated-anon-enum-enum-conversion] enum { NumSIMDVectors = (MaxSHBasis + NumComponentsPerSIMDVector - 1) / NumComponentsPerSIMDVector }; ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ 0>/opt/unreal-engine/Engine/Source/Runtime/Core/Public/Math/SHMath.h:460:21: Reference : in instantiation of template class 'TSHVector<2>' requested here inline TSHVector<2> TSHVector<2>::SHBasisFunction(const FVector& Vector)
I tried to disable warnings as errors in the "*.Build.cs" file and in the "BuildConfig.xml" with no success. How to build Unreal Engine 5.1 with c++20 standard?
Additional Information:
- I am on Linux.
- I use JetBrains Rider.
- I did not build from sources.