diff --git a/TinySTL/Construct.h b/TinySTL/Construct.h index 2e487f7fcdf32f660dcdb2e09ae09ac333b41df9..1546f13c4f7e2f6c6de2142e2a3be76236db69b1 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()); } }