diff --git a/src/Exporter.cpp b/src/Exporter.cpp index 3b430c2..25e3f7c 100644 --- a/src/Exporter.cpp +++ b/src/Exporter.cpp @@ -68,7 +68,12 @@ void XMLExporter::exportShapes(const boost::filesystem::path& inputFilePath, con mouthCueElement.put(".end", formatDuration(timedShape.getEnd())); } - write_xml(outputStream, tree, boost::property_tree::xml_writer_settings(' ', 2)); +#if BOOST_VERSION < 105600 // Support legacy syntax + using writer_setting = boost::property_tree::xml_writer_settings; +#else + using writer_setting = boost::property_tree::xml_writer_settings; +#endif + write_xml(outputStream, tree, writer_setting(' ', 2)); } string escapeJSONString(const string& s) {