mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
fixed isnan() not defined
This commit is contained in:
@@ -41,12 +41,10 @@
|
|||||||
template<class T>
|
template<class T>
|
||||||
inline bool uIsNan(const T & value)
|
inline bool uIsNan(const T & value)
|
||||||
{
|
{
|
||||||
#ifdef __APPLE__
|
#if _MSC_VER
|
||||||
return std::isnan(value);
|
|
||||||
#elif _MSC_VER
|
|
||||||
return _isnan(value) != 0;
|
return _isnan(value) != 0;
|
||||||
#else
|
#else
|
||||||
return isnan(value);
|
return std::isnan(value);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user