Skip to content

Commit

Permalink
add assertion for uindex_t
Browse files Browse the repository at this point in the history
  • Loading branch information
haritha-j committed Jun 18, 2020
1 parent cf9f6d5 commit 1a9b8e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/include/pcl/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ namespace pcl
* Unsigned index that mirrors the type of the index_t
*/
using uindex_t = detail::int_type_t<detail::index_type_size, false>;
static_assert(!std::is_signed<uindex_t>::value, "`uindex_t` must be unsigned");

/**
* \brief Type used for indices in PCL
Expand Down

0 comments on commit 1a9b8e2

Please sign in to comment.