std::string::const_iterator vs std::string::iterator gives an error on gcc 4.9.1.

Use decltype(start) to avoid the mismatch altogether.