-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Migrate to standard library type traits #3105
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
Migrate to standard library type traits #3105
Conversation
common/include/pcl/point_traits.h
Outdated
@@ -98,7 +98,7 @@ namespace pcl | |||
// its scalar type and total number of elements. | |||
template<typename T> struct decomposeArray | |||
{ | |||
typedef typename boost::remove_all_extents<T>::type type; | |||
typedef typename std::remove_all_extents<T>::type type; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typedef std::remove_all_extents_t<T> type
@@ -94,102 +94,102 @@ namespace pcl | |||
namespace traits | |||
{ | |||
template<typename T> inline | |||
typename boost::disable_if_c<boost::is_array<T>::value>::type | |||
typename std::enable_if<!std::is_array<T>::value>::type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std::enable_if_t<!std::is_array<T>::value>
And everywhere below
LGTM, but since you started to use |
75c4327
to
6170a66
Compare
As usual, I'll squash commits per module and merge once the PR is accepted. |
6170a66
to
978daeb
Compare
I performed all trivial replacement from type traits. There's still a lot being used from Boost.MPL, Boost.Preprocessor and Boost.Concept. Stripping those out is not feasible at this point.