This commit is contained in:
邹晓航
2015-01-05 09:37:35 +08:00
parent 961e513646
commit b736288211

View File

@@ -230,6 +230,9 @@ namespace TinySTL{
template<class T, size_t N, class Alloc>
template<class InputIterator>
circular_buffer<T, N, Alloc>::circular_buffer(InputIterator first, InputIterator last){
//bug fix
//2015.01.05
assert(first != last);
allocateAndCopy(first, last);
}
template<class T, size_t N, class Alloc>