C++11: N1984 auto

This commit is contained in:
Paul Beckingham 2015-05-24 13:41:23 -04:00
parent 4be49a2d72
commit 2834e14eb5
3 changed files with 7 additions and 7 deletions

View file

@ -392,8 +392,8 @@ void UnitTest::is (
///////////////////////////////////////////////////////////////////////////////
void UnitTest::diag (const std::string& text)
{
std::string::size_type start = text.find_first_not_of (" \t\n\r\f");
std::string::size_type end = text.find_last_not_of (" \t\n\r\f");
auto start = text.find_first_not_of (" \t\n\r\f");
auto end = text.find_last_not_of (" \t\n\r\f");
std::cout << "# " << text.substr (start, end - start + 1) << "\n";
}