Преглед на файлове

fix(vector): wrong const back() type

greatbridf преди 2 години
родител
ревизия
137583508c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      include/types/vector.hpp

+ 1 - 1
include/types/vector.hpp

@@ -263,7 +263,7 @@ public:
         return iterator_type(m_arr + m_size - 1);
     }
 
-    const iterator_type back() const noexcept
+    const_iterator_type back() const noexcept
     {
         return const_iterator_type(m_arr + m_size - 1);
     }