From fa7f526cc7faeb2835adbb00741faab3dcec970b Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Tue, 15 Oct 2024 15:31:03 +0800 Subject: [PATCH] update --- src/mini_safe_array/mini_safe_array.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mini_safe_array/mini_safe_array.cpp b/src/mini_safe_array/mini_safe_array.cpp index 31fdbd2..ce4b9e3 100644 --- a/src/mini_safe_array/mini_safe_array.cpp +++ b/src/mini_safe_array/mini_safe_array.cpp @@ -49,8 +49,8 @@ public: #endif std::copy(init.begin(),init.end(),arr); } - constexpr ll size()const noexcept{ - return size; + static constexpr ll size()noexcept{ + return _size; } constexpr T& operator[](const ll index)NDB_NOEXCEPT{ #ifndef NDEBUG