Update datatest.cpp

This commit is contained in:
Jeffrey Walton 2021-03-19 19:19:58 -04:00
parent 93c4fc2b8a
commit 2dd1082c78
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -72,10 +72,8 @@ bool Readline(std::istream& stream, std::string& line)
break;
}
// Grow by 1.5x as needed
//if (line.capacity() == 0)
// line.reserve(line.size()*3/2);
// Let string class manage its own capacity.
// The string will grow as needed.
line.push_back(static_cast<char>(ch));
}