From d5592ea1e325131d4a7abf5e98f67fcb5cf22287 Mon Sep 17 00:00:00 2001 From: Joe Gallo Date: Thu, 28 Aug 2014 11:04:55 -0400 Subject: #if guards for boost 1.56 compatibility --- src/ptree.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ptree.cc') diff --git a/src/ptree.cc b/src/ptree.cc index 6609aed9..3fc9ace6 100644 --- a/src/ptree.cc +++ b/src/ptree.cc @@ -80,7 +80,12 @@ void format_ptree::flush() switch (format) { case FORMAT_XML: +#if BOOST_VERSION >= 105600 + auto indented = property_tree::xml_writer_make_settings (' ', 2); +#else property_tree::xml_writer_settings indented(' ', 2); +#endif + property_tree::write_xml(out, pt, indented); out << std::endl; break; -- cgit v1.2.3