diff --git a/src/utils/Array.hpp b/src/utils/Array.hpp index e47e56575fe725f67f6c6815c34c42eac4ce8d44..e2a4e5c71c6938e96a2d2cf63318b1f7ed9c8f4c 100644 --- a/src/utils/Array.hpp +++ b/src/utils/Array.hpp @@ -60,7 +60,7 @@ class [[nodiscard]] Array PUGS_INLINE void fill(const DataType& data) const { - static_assert(not std::is_const<DataType>(), "Cannot modify Array of const"); + static_assert(not std::is_const_v<DataType>, "Cannot modify Array of const"); Kokkos::deep_copy(m_values, data); } @@ -72,7 +72,7 @@ class [[nodiscard]] Array static_assert(std::is_same<std::remove_const_t<DataType>, std::remove_const_t<DataType2>>(), "Cannot assign Array of different type"); // ensures that const is not lost through copy - static_assert(((std::is_const<DataType2>() and std::is_const<DataType>()) or not std::is_const<DataType2>()), + static_assert(((std::is_const_v<DataType2> and std::is_const_v<DataType>) or not std::is_const_v<DataType2>), "Cannot assign Array of const to Array of non-const"); m_values = array.m_values; return *this;