From 70e2108501150062582d694d29e4720420b19510 Mon Sep 17 00:00:00 2001 From: cyborg1811m Date: Sun, 28 Jul 2024 16:47:05 +0200 Subject: [PATCH] implemented operator= for different sized array --- include/const_vector.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/const_vector.hpp b/include/const_vector.hpp index 0abf57e..7138cad 100644 --- a/include/const_vector.hpp +++ b/include/const_vector.hpp @@ -68,7 +68,7 @@ namespace cc { constexpr const_vector& operator=(const_vector&& other) noexcept; template constexpr const_vector& operator=(const_vector&& other); - //constexpr const_vector& operator=(const value_type (&array)[N]) noexcept; // not needed as functionally equivalent to templated overload + //constexpr const_vector& operator=(const value_type (&array)[N]) noexcept; // not needed as functionally equivalent to templated overload, could be noexcept though template constexpr const_vector& operator=(const value_type (&array)[N2]); constexpr const_vector& operator=(std::initializer_list values);