From b736288211cb6e640b872e2d3f293912f86bb0d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Mon, 5 Jan 2015 09:37:35 +0800 Subject: [PATCH] bug fix --- TinySTL/CircularBuffer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TinySTL/CircularBuffer.h b/TinySTL/CircularBuffer.h index 92aa859..468179e 100644 --- a/TinySTL/CircularBuffer.h +++ b/TinySTL/CircularBuffer.h @@ -230,6 +230,9 @@ namespace TinySTL{ template template circular_buffer::circular_buffer(InputIterator first, InputIterator last){ + //bug fix + //2015.01.05 + assert(first != last); allocateAndCopy(first, last); } template