Created
January 5, 2018 22:49
-
-
Save moonwatcher/ab22ba80f7583d28282ebd8f1d9f7d23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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