Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aiitslam committed May 28, 2016
1 parent 6ca8fa8 commit 550ae0b
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 550ae0b

Please sign in to comment.