When things like this happen:
Before:
Code: Select all
std::vector<std::string> names;
names.push_back("stone-furnace");
names.push_back("straight-rail");
names.push_back("gate");
BOOST_FOREACH (const std::string& name, names)
Code: Select all
for (const std::string& name: {"stone-furnace", "straight-rail", "gate"})
