Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/162.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 是否可以在源文件中更改constexpr ops limit?_C++_C++14_C++17_Constexpr_Pragma - Fatal编程技术网

C++ 是否可以在源文件中更改constexpr ops limit?

C++ 是否可以在源文件中更改constexpr ops limit?,c++,c++14,c++17,constexpr,pragma,C++,C++14,C++17,Constexpr,Pragma,我想将constexpr ops limit更改为一个更大的数字。我知道可以将-fconstexpr ops limit=作为命令行参数,但我无法更改参数,因为我将代码提交给自动运行它的系统。我想知道GCC或VC++中是否有符合我需要的pragmas 有什么办法吗?先谢谢你 你真的需要在constexpr(GCC的默认限制)中执行3300多万次操作吗?@AlanBirtles当我编写constexpr sin()和cos()时,由Taylor扩展和插值实现,我不得不增加限制。我怀疑在编译网页上,

我想将
constexpr ops limit
更改为一个更大的数字。我知道可以将
-fconstexpr ops limit=
作为命令行参数,但我无法更改参数,因为我将代码提交给自动运行它的系统。我想知道GCC或VC++中是否有符合我需要的pragmas


有什么办法吗?先谢谢你

你真的需要在constexpr(GCC的默认限制)中执行3300多万次操作吗?@AlanBirtles当我编写constexpr sin()和cos()时,由Taylor扩展和插值实现,我不得不增加限制。我怀疑在编译网页上,限制可能设置为低于GCC默认值,正是为了阻止人们试图让编译器使用constexpr泰勒级数生成sin和cos表。我是说,编译@RichardHodges需要多长时间?:-)@根据记忆,这花了几十秒。它在我的macbook上。