C++ permits recursion, hence is subject to the problems described in ISO/IEC 24772-1 clause 6.35.
C++ allows recursive constexpr
functions and consteval
functions that are evaluated at compile time where such calls don’t contribute to the vulnerability.
To avoid the vulnerability or mitigate its ill effects, C++ software developers can follow the avoidance mechanisms of ISO/IEC 24772-1 clause 6.35.5.