当前位置: 代码迷 >> 综合 >> 'isnan' was not declared in this scope
  详细解决方案

'isnan' was not declared in this scope

热度:41   发布时间:2023-12-08 14:18:44.0

‘isnan’ was not declared in this scope
isnan在cmath中被取消宏定义

// These are possible macros imported from C99-land.
#undef fpclassify
#undef isfinite
#undef isinf
#undef isnan

在使用的isnan前加上std::即可。

  相关解决方案