Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate pcl_isnan, pcl_isfinite and pcl_isinf properly #3457

Merged
merged 1 commit into from
Nov 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion common/include/pcl/pcl_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,21 @@ namespace pcl
# define __PRETTY_FUNCTION__ __FUNCTION__
# define __func__ __FUNCTION__

#endif
#endif //defined _WIN32 && defined _MSC_VER


template<typename T>
[[deprecated("use std::isnan instead of pcl_isnan")]]
bool pcl_isnan (T&& x) { return std::isnan (std::forward<T> (x)); }

template<typename T>
[[deprecated("use std::isfinite instead of pcl_isfinite")]]
bool pcl_isfinite (T&& x) { return std::isfinite (std::forward<T> (x)); }

template<typename T>
[[deprecated("use std::isinf instead of pcl_isinf")]]
bool pcl_isinf (T&& x) { return std::isinf (std::forward<T> (x)); }


#ifndef DEG2RAD
#define DEG2RAD(x) ((x)*0.017453293)
Expand Down