Skip to content

Instantly share code, notes, and snippets.

@moonwatcher
Created January 5, 2018 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moonwatcher/ab22ba80f7583d28282ebd8f1d9f7d23 to your computer and use it in GitHub Desktop.
Save moonwatcher/ab22ba80f7583d28282ebd8f1d9f7d23 to your computer and use it in GitHub Desktop.
#ifndef WIN32
boost::property_tree::write_xml(os, treeWithIndexAttributes, boost::property_tree::xml_writer_make_settings(' ', 2));
#else
boost::property_tree::write_xml(os, treeWithIndexAttributes, boost::property_tree::xml_writer_make_settings<std::string>(' ', 2));
#endif
}
else
{
#ifndef WIN32
boost::property_tree::write_xml(os, tree, boost::property_tree::xml_writer_make_settings(' ', 2));
#else
boost::property_tree::write_xml(os, tree, boost::property_tree::xml_writer_make_settings<std::string>(' ', 2));
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment