It is necessary to transfer the system configuration, which is stored in the ini file over the Internet. I use boost to work with the ini configuration file. How to save the entire property tree to a string?
Just write in std::stringstream :
std::stringstream
std::ostringstream oss; boost::property_tree::ini_parser::write_ini(oss, my_ptree); std::string inifile_text = oss.str();
Replace wstring / wostringstream with appropriate
wstring
wostringstream
Source: https://habr.com/ru/post/1208345/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1208340/how-to-change-the-close-time-of-the-html5-desktop-notification-to-not-autoclose&usg=ALkJrhghYzn6z92p9PxkXiCrkDm4vPzNKAFirefox Web Notification Prevention Automatically Closing - javascriptAccess to Google storage based on IP address - google-cloud-storageMySQL insert, faster in PHP than C ++, is this expected? - c ++Bootstrap modal-footer does not stick to the bottom of the modal - jqueryThese two member functions, why aren't they overloaded? - c ++https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1208347/extjs-tooltip-renders-wrong-with-long-body&usg=ALkJrhgJf064zvoeR4ibarbiX5IQAkAQigHow to configure Active admin for mongoid and active recording? - activerecordGradle copy without overwriting - gradleCreating Dynamic Func , IOrderedQueryable >? - sortingAll Articles