Commit 155a17e8 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Adjusted assertion in SizesHolderHelpers to avoid weird g++ warning

parent 600fd464
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ void assertIndicesInBounds( const SizesHolder& sizes, Index&& i, IndexTypes&&...
   // shouldn't be declared when compiling without assertions
   constexpr std::size_t level = SizesHolder::getDimension() - sizeof...(indices) - 1;
   const auto size = sizes.template getSize< level >();
   TNL_ASSERT_LT( i, (Index) size, "Input error - some index is out of bounds." );
   TNL_ASSERT_LT( (decltype(size)) i, size, "Input error - some index is out of bounds." );
#endif
   assertIndicesInBounds( sizes, std::forward< IndexTypes >( indices )... );
}