c++98 migration (no destructors loop)