diff --git a/src/utils/Array.hpp b/src/utils/Array.hpp index 73f820949dbb8e60e031a53065130ff62ca95157..560f60ce7015c06fa68c80121b43f86179a05e83 100644 --- a/src/utils/Array.hpp +++ b/src/utils/Array.hpp @@ -75,7 +75,7 @@ class [[nodiscard]] Array Array& operator=(Array&&) = default; PUGS_INLINE - Array(size_t size) : m_values("anonymous", size) + explicit Array(size_t size) : m_values("anonymous", size) { static_assert(not std::is_const<DataType>(), "Cannot allocate Array of const data: only view is " "supported");