修复vector当对象是std::string时的构造二义性bug

This commit is contained in:
邹晓航
2014-09-20 20:35:06 +08:00
parent 4ddc317978
commit 74bf3e2ec7
3 changed files with 6 additions and 9 deletions

View File

@@ -90,7 +90,7 @@ namespace TinySTL{
ForwardIterator _uninitialized_n_fill_aux(ForwardIterator first,
Size n, const T& x, _false_type){
int i = 0;
for (; i != n;){
for (; i != n; ++i){
construct((first + i), x);
}
return (first + i);