c++98 migration -- main destructors loops