From 550ae0bbc7b4df372ae107b185d734bb74dfddd9 Mon Sep 17 00:00:00 2001 From: zhanglanqing <1174514176@qq.com> Date: Sat, 28 May 2016 11:35:10 +0800 Subject: [PATCH] bug fix --- TinySTL/Construct.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TinySTL/Construct.h b/TinySTL/Construct.h index 2e487f7..1546f13 100644 --- a/TinySTL/Construct.h +++ b/TinySTL/Construct.h @@ -22,15 +22,15 @@ namespace TinySTL{ template inline void _destroy(ForwardIterator first, ForwardIterator last, _false_type){ - for (; , first != last; ++first){ + for (; first != last; ++first){ destroy(&*first); } } template inline void destroy(ForwardIterator first, ForwardIterator last){ - typedef typename _type_traits::is_POD_type is_POD_type; - _destroy(first, last, is_POD_type); + typedef typename _type_traits::is_POD_type is_POD_type; + _destroy(first, last, is_POD_type()); } }