3737
3838#pragma once
3939
40- #include < boost/mpl/assert.hpp> // for BOOST_MPL_ASSERT_MSG
4140#include < boost/mpl/identity.hpp> // for boost::mpl::identity
4241
4342#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
111110 // static const char value[];
112111
113112 // 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. " );
116115};
117116} // namespace traits
118117} // namespace pcl
@@ -143,8 +142,8 @@ struct offset /** \cond NO_WARN_RECURSIVE */ : offset<typename POD<PointT>::type
143142 // static const std::size_t value;
144143
145144 // 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. " );
148147};
149148} // namespace traits
150149} // namespace pcl
@@ -170,8 +169,8 @@ namespace traits
170169 // static const std::uint32_t size;
171170
172171 // 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. " );
175174 };
176175 } // namespace traits
177176 } // namespace pcl
@@ -198,8 +197,8 @@ struct fieldList /** \cond NO_WARN_RECURSIVE */ : fieldList<typename POD<PointT>
198197 // using type = boost::mpl::vector<...>;
199198
200199 // 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. " );
203202};
204203} // namespace traits
205204} // namespace pcl
0 commit comments