- for(i=options.begin(); i!=options.end(); ++i)
- IO::print(out, "option \"%s\" \"%s\";\n", i->second.name, i->second.value);
-}
-
-bool Config::set_option(const string &opt, const string &val)
-{
- bool result = false;
-
- OptionMap::iterator i = options.find(opt);
- if(i!=options.end())
- {
- if(i->second.value!=val)
- result = true;
- i->second.value = val;
- }
+ for(const auto &kvp: options)
+ IO::print(out, "option \"%s\" \"%s\";\n", kvp.second.name, kvp.second.value);