From 163f771a55d5dcfd97d18c25290647a6a76a42a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Mon, 22 Dec 2014 09:33:41 +0800 Subject: [PATCH] bug fix --- TinySTL/Vector.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TinySTL/Vector.h b/TinySTL/Vector.h index 412a2a9..35d9366 100644 --- a/TinySTL/Vector.h +++ b/TinySTL/Vector.h @@ -23,7 +23,8 @@ namespace TinySTL{ public: typedef T value_type; typedef T* iterator; - typedef const iterator const_iterator; + //typedef const iterator const_iterator; + typedef const T* const_iterator; typedef reverse_iterator_t reverse_iterator; typedef reverse_iterator_t const_reverse_iterator; typedef iterator pointer;