diff --git a/common/include/pcl/types.h b/common/include/pcl/types.h index de0f154a6ae..125f0d30d18 100644 --- a/common/include/pcl/types.h +++ b/common/include/pcl/types.h @@ -126,6 +126,7 @@ namespace pcl * Unsigned index that mirrors the type of the index_t */ using uindex_t = detail::int_type_t; + static_assert(!std::is_signed::value, "`uindex_t` must be unsigned"); /** * \brief Type used for indices in PCL