소스 검색

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);
     }