summaryrefslogtreecommitdiff
path: root/src/ptree.cc
diff options
context:
space:
mode:
authorJoe Gallo <joegallo@gmail.com>2014-08-28 11:04:55 -0400
committerJoe Gallo <joegallo@gmail.com>2014-08-28 11:04:55 -0400
commitd5592ea1e325131d4a7abf5e98f67fcb5cf22287 (patch)
tree23fb9715c255d297001d259adfee1e629467bdf6 /src/ptree.cc
parent948f5fea2818df2e4793557505914bbc859fc193 (diff)
downloadfork-ledger-d5592ea1e325131d4a7abf5e98f67fcb5cf22287.tar.gz
fork-ledger-d5592ea1e325131d4a7abf5e98f67fcb5cf22287.tar.bz2
fork-ledger-d5592ea1e325131d4a7abf5e98f67fcb5cf22287.zip
#if guards for boost 1.56 compatibility
Diffstat (limited to 'src/ptree.cc')
-rw-r--r--src/ptree.cc5
1 files changed, 5 insertions, 0 deletions
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<std::string> (' ', 2);
+#else
property_tree::xml_writer_settings<char> indented(' ', 2);
+#endif
+
property_tree::write_xml(out, pt, indented);
out << std::endl;
break;