Remove this mess with 'for' loop C++98 style