Skip to content

Migrate to standard library type traits#3105

Merged
SergioRAgostinho merged 3 commits intoPointCloudLibrary:masterfrom
SergioRAgostinho:type_traits
May 31, 2019
Merged

Migrate to standard library type traits#3105
SergioRAgostinho merged 3 commits intoPointCloudLibrary:masterfrom
SergioRAgostinho:type_traits

Conversation

@SergioRAgostinho
Copy link
Copy Markdown
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.

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
Copy Markdown
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

{
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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