提交 b6bde62f 编写于 作者: Z zouxiaohang

Merge pull request #17 from zhanglanqing/master

bug fix
...@@ -22,15 +22,15 @@ namespace TinySTL{ ...@@ -22,15 +22,15 @@ namespace TinySTL{
template<class ForwardIterator> template<class ForwardIterator>
inline void _destroy(ForwardIterator first, ForwardIterator last, _false_type){ inline void _destroy(ForwardIterator first, ForwardIterator last, _false_type){
for (; , first != last; ++first){ for (; first != last; ++first){
destroy(&*first); destroy(&*first);
} }
} }
template<class ForwardIterator> template<class ForwardIterator>
inline void destroy(ForwardIterator first, ForwardIterator last){ inline void destroy(ForwardIterator first, ForwardIterator last){
typedef typename _type_traits<T>::is_POD_type is_POD_type; typedef typename _type_traits<ForwardIterator>::is_POD_type is_POD_type;
_destroy(first, last, is_POD_type); _destroy(first, last, is_POD_type());
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册