Skip to content

Commit

Permalink
Merge pull request #17 from zhanglanqing/master
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
zouxiaohang committed May 28, 2016
2 parents bae4b9a + 550ae0b commit b6bde62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TinySTL/Construct.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ namespace TinySTL{

template<class ForwardIterator>
inline void _destroy(ForwardIterator first, ForwardIterator last, _false_type){
for (; , first != last; ++first){
for (; first != last; ++first){
destroy(&*first);
}
}

template<class ForwardIterator>
inline void destroy(ForwardIterator first, ForwardIterator last){
typedef typename _type_traits<T>::is_POD_type is_POD_type;
_destroy(first, last, is_POD_type);
typedef typename _type_traits<ForwardIterator>::is_POD_type is_POD_type;
_destroy(first, last, is_POD_type());
}

}
Expand Down

0 comments on commit b6bde62

Please sign in to comment.