Errors computing factorial in C++ constant expression
The program as follows computes factorial using function fact
. It works just fine in run-time, but constant evaluation of fact
fails in the latest Visual Studio 2022 and all previous versions I have tried: