Make "default-output" attribute optional.

This commit is contained in:
Hermann Kraus 2010-07-25 21:03:35 +00:00
parent d6acd74ec3
commit 20d5eb5698

View file

@ -362,7 +362,7 @@ void map_parser::parse_metawriter(Map & map, ptree const & pt)
string type = get_attr<string>(pt, "type");
if (type == "json") {
string file = get_attr<string>(pt, "file");
optional<string> properties = get_attr<string>(pt, "default-output");
optional<string> properties = get_opt_attr<string>(pt, "default-output");
writer = metawriter_ptr(new metawriter_json(properties, file));
} else {
throw config_error(string("Unknown type '") + type + "'");