From cc705c73163168001673f74fa51fb788618c4e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Wed, 7 Jan 2015 17:49:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99cntrPtr=E6=8C=87=E9=92=88=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=BA=95=E5=B1=82const=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TinySTL/Deque.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TinySTL/Deque.h b/TinySTL/Deque.h index 1000f9c..8dd7cb0 100644 --- a/TinySTL/Deque.h +++ b/TinySTL/Deque.h @@ -17,7 +17,8 @@ namespace TinySTL{ template friend class deque; private: - typedef TinySTL::deque* cntrPtr; + //typedef TinySTL::deque* cntrPtr; + typedef const TinySTL::deque* cntrPtr; size_t mapIndex_; T *cur_; cntrPtr container_;