diff options
author | John Wiegley <johnw@newartisans.com> | 2014-08-28 13:22:10 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2014-08-28 13:22:10 -0500 |
commit | c1598b7de27c5ba5fafc8a5efb1db18fe54d3070 (patch) | |
tree | 2e6a8e37f7ed02b66dd17ad5abe3238c7bcb665f /src/ptree.cc | |
parent | 948f5fea2818df2e4793557505914bbc859fc193 (diff) | |
parent | 6508e39b692777ddd7204870326c8fd2a2fc6402 (diff) | |
download | fork-ledger-c1598b7de27c5ba5fafc8a5efb1db18fe54d3070.tar.gz fork-ledger-c1598b7de27c5ba5fafc8a5efb1db18fe54d3070.tar.bz2 fork-ledger-c1598b7de27c5ba5fafc8a5efb1db18fe54d3070.zip |
Merge pull request #319 from joegallo/master
Compilation errors with boost 1.56 (a second try)
Diffstat (limited to 'src/ptree.cc')
-rw-r--r-- | src/ptree.cc | 5 |
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; |