C++11: N1984 auto

This commit is contained in:
Paul Beckingham 2015-05-24 13:36:26 -04:00
parent 7bbc794d3a
commit e8d04bdce6
24 changed files with 77 additions and 77 deletions

View file

@ -150,7 +150,7 @@ bool Msg::parse (const std::string& input)
split (lines, input.substr (0, separator), '\n');
for (auto& i : lines)
{
std::string::size_type delimiter = i.find (':');
auto delimiter = i.find (':');
if (delimiter == std::string::npos)
throw std::string ("ERROR: Malformed message header '") + i + "'";