Skip to content

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

Merged

Conversation

SergioRAgostinho
Copy link
Member

@SergioRAgostinho SergioRAgostinho commented May 27, 2019

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.

@@ -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;
Copy link
Member

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
Copy link
Member

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

@taketwo
Copy link
Member

taketwo commented May 30, 2019

LGTM, but since you started to use _t helpers, let's have them everywhere where appropriate.

@SergioRAgostinho SergioRAgostinho force-pushed the type_traits branch 2 times, most recently from 75c4327 to 6170a66 Compare May 31, 2019 07:14
@SergioRAgostinho
Copy link
Member Author

As usual, I'll squash commits per module and merge once the PR is accepted.

@SergioRAgostinho SergioRAgostinho merged commit 13e3050 into PointCloudLibrary:master May 31, 2019
@SergioRAgostinho SergioRAgostinho deleted the type_traits branch May 31, 2019 09:55
@taketwo taketwo changed the title Transition to std type_traits Migrate to standard library type traits Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: ABI break Meta-information for changelog generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants