Fix xml_writer_settings

This commit is contained in:
Simon Giraudot 2017-08-31 09:46:01 +02:00
parent 346c79ad66
commit 819eb7f7b1
1 changed files with 2 additions and 3 deletions

View File

@ -682,10 +682,9 @@ public:
}
tree.add_child("classification.labels.label", ptr);
}
// Write property tree to XML file
boost::property_tree::xml_writer_settings<boost::property_tree::ptree::key_type> settings(' ', 3);
boost::property_tree::write_xml(output, tree, settings);
boost::property_tree::write_xml(output, tree,
boost::property_tree::xml_writer_make_settings<std::string>(' ', 3));
}
/*!