可以通过 clang 或 gcc 的命令行选项配置 constexpr 编译时递归限制吗?怎么办?
最佳答案
当我超出 gcc 的限制时,我收到此错误消息:
error: constexpr evaluation depth exceeds maximum of 512 (use -fconstexpr-depth= to increase the maximum)
并根据documentation ,clang 理解相同的选项。
关于gcc - 可以为 clang 或 gcc 配置 constexpr 递归限制吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16876474/