From 6adb1c8b2c7d97581d015c34522d09fc8895da06 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, 15 Oct 2014 16:53:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86std=E4=B8=AD=E7=9A=84=E7=AE=97?= =?UTF-8?q?=E6=B3=95=E6=9B=BF=E6=8D=A2=E4=B8=BATInySTL=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E7=AE=97=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TinySTL/Vector.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TinySTL/Vector.h b/TinySTL/Vector.h index 9ec9ee1..b609d2e 100644 --- a/TinySTL/Vector.h +++ b/TinySTL/Vector.h @@ -133,9 +133,9 @@ namespace TinySTL{ } void swap(vector& v){ if (this != &v){ - std::swap(start_, v.start_); - std::swap(finish_, v.finish_); - std::swap(endOfStorage_, v.endOfStorage_); + TinySTL::swap(start_, v.start_); + TinySTL::swap(finish_, v.finish_); + TinySTL::swap(endOfStorage_, v.endOfStorage_); } } void push_back(const value_type& value);