Admittedly, even old style C++ with Boost does look a lot like a scripting language (except for the segfaults).
for(const auto &i : data) { ofile << i << std::endl; }
BOOST_FOREACH(string i, data) { ofile << i << std::endl; }
Admittedly, even old style C++ with Boost does look a lot like a scripting language (except for the segfaults).