37
37
38
38
#pragma once
39
39
40
- #include < boost/mpl/assert.hpp> // for BOOST_MPL_ASSERT_MSG
41
40
#include < boost/mpl/identity.hpp> // for boost::mpl::identity
42
41
43
42
#include < boost/mpl/vector.hpp> // for boost::mpl::vector
@@ -111,8 +110,8 @@ struct name /** \cond NO_WARN_RECURSIVE */ : name<typename POD<PointT>::type, Ta
111
110
// static const char value[];
112
111
113
112
// Avoid infinite compile-time recursion
114
- BOOST_MPL_ASSERT_MSG (( !std::is_same<PointT, typename POD<PointT>::type>::value) ,
115
- POINT_TYPE_NOT_PROPERLY_REGISTERED, (PointT&) );
113
+ static_assert ( !std::is_same<PointT, typename POD<PointT>::type>::value,
114
+ " Point type not properly registered. " );
116
115
};
117
116
} // namespace traits
118
117
} // namespace pcl
@@ -143,8 +142,8 @@ struct offset /** \cond NO_WARN_RECURSIVE */ : offset<typename POD<PointT>::type
143
142
// static const std::size_t value;
144
143
145
144
// Avoid infinite compile-time recursion
146
- BOOST_MPL_ASSERT_MSG (( !std::is_same<PointT, typename POD<PointT>::type>::value) ,
147
- POINT_TYPE_NOT_PROPERLY_REGISTERED, (PointT&) );
145
+ static_assert ( !std::is_same<PointT, typename POD<PointT>::type>::value,
146
+ " Point type not properly registered. " );
148
147
};
149
148
} // namespace traits
150
149
} // namespace pcl
@@ -170,8 +169,8 @@ namespace traits
170
169
// static const std::uint32_t size;
171
170
172
171
// Avoid infinite compile-time recursion
173
- BOOST_MPL_ASSERT_MSG (( !std::is_same<PointT, typename POD<PointT>::type>::value) ,
174
- POINT_TYPE_NOT_PROPERLY_REGISTERED, (PointT&) );
172
+ static_assert ( !std::is_same<PointT, typename POD<PointT>::type>::value,
173
+ " Point type not properly registered. " );
175
174
};
176
175
} // namespace traits
177
176
} // namespace pcl
@@ -198,8 +197,8 @@ struct fieldList /** \cond NO_WARN_RECURSIVE */ : fieldList<typename POD<PointT>
198
197
// using type = boost::mpl::vector<...>;
199
198
200
199
// Avoid infinite compile-time recursion
201
- BOOST_MPL_ASSERT_MSG (( !std::is_same<PointT, typename POD<PointT>::type>::value) ,
202
- POINT_TYPE_NOT_PROPERLY_REGISTERED, (PointT&) );
200
+ static_assert ( !std::is_same<PointT, typename POD<PointT>::type>::value,
201
+ " Point type not properly registered. " );
203
202
};
204
203
} // namespace traits
205
204
} // namespace pcl
0 commit comments