【发布时间】:2015-02-05 22:08:02
【问题描述】:
有没有办法使用boost::property::ptree在ini文件中写入cmets?
类似的东西:
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);
}
文档here 没有提供信息。 boost 实现了吗?
【问题讨论】:
标签: c++ boost ini boost-propertytree