I wanted to delete one symbol ':' from the string.
std::cout << str << " "; //1948: 59 63
std::remove(str.begin(), str.end(), ':');
std::cout << str << " ";//1948 59 633
In case when I change the range to [str.negin(), str.begin()+5) everything is ok.