有没有办法使用boost::property::ptree
在ini文件中编写注释?
就像这样:
void save_ini(const std::string& path)
{
boost::property_tree::ptree pt;
int first_value = 1;
int second_value = 2;
// Write a comment to describe what the first_value is here
pt.put("something.first_value", );
// Write a second comment here
pt.put("something.second_value", second_value);
boost::property_tree::write_ini(path, pt);
}
这里的文档没有提供相关信息。Boost是否实现了该功能?