diff --git a/src/mesh/ItemValue.hpp b/src/mesh/ItemValue.hpp index ef10317521a3d26460dd0166de56679e84f11cd9..827daa32d0e912dd43c13f4113f5ceb2566f034d 100644 --- a/src/mesh/ItemValue.hpp +++ b/src/mesh/ItemValue.hpp @@ -95,13 +95,10 @@ class ItemValue } template <typename IndexType> - DataType& operator[](const IndexType& i) const noexcept(NO_ASSERT) + DataType& operator[](const IndexType&) const noexcept(NO_ASSERT) { static_assert(std::is_same_v<IndexType,ItemId>, "ItemValue must be indexed by ItemId"); - static_assert(not std::is_const_v<DataType>, - "Cannot modify ItemValue of const"); - return m_values[i]; } PASTIS_INLINE