std::ios::out unnecessary with std::ofstream