From 1a9b8e208c78267122ece4322292c217ac6aba39 Mon Sep 17 00:00:00 2001 From: haritha-j Date: Thu, 18 Jun 2020 23:31:27 +0530 Subject: [PATCH] add assertion for uindex_t --- common/include/pcl/types.h | 1 + 1 file changed, 1 insertion(+) 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