Skip to content

Instantly share code, notes, and snippets.

@bchretien
Created September 8, 2014 10:23
Show Gist options
  • Save bchretien/836835df99d4b0a208ca to your computer and use it in GitHub Desktop.
Save bchretien/836835df99d4b0a208ca to your computer and use it in GitHub Desktop.
--- io/src/lzf_image_io.cpp 2014-09-08 03:03:01.925540518 -0400
+++ io/src/lzf_image_io.cpp 2014-09-08 03:10:55.382514407 -0400
@@ -198,7 +198,7 @@
catch (std::exception& e)
{}
- boost::property_tree::xml_writer_settings<char> settings ('\t', 1);
+ boost::property_tree::xml_writer_settings<std::string> settings = boost::property_tree::xml_writer_make_settings<std::string>('\t', 1);
pt.put (tag, parameter);
write_xml (filename, pt, std::locale (), settings);
@@ -218,7 +218,7 @@
catch (std::exception& e)
{}
- boost::property_tree::xml_writer_settings<char> settings ('\t', 1);
+ boost::property_tree::xml_writer_settings<std::string> settings = boost::property_tree::xml_writer_make_settings<std::string>('\t', 1);
pt.put ("depth.focal_length_x", parameters.focal_length_x);
pt.put ("depth.focal_length_y", parameters.focal_length_y);
pt.put ("depth.principal_point_x", parameters.principal_point_x);
@@ -279,7 +279,7 @@
catch (std::exception& e)
{}
- boost::property_tree::xml_writer_settings<char> settings ('\t', 1);
+ boost::property_tree::xml_writer_settings<std::string> settings = boost::property_tree::xml_writer_make_settings<std::string>('\t', 1);
pt.put ("rgb.focal_length_x", parameters.focal_length_x);
pt.put ("rgb.focal_length_y", parameters.focal_length_y);
pt.put ("rgb.principal_point_x", parameters.principal_point_x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment