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