Subject: [Boost-bugs] [Boost C++ Libraries] #12259: improved version of boost::property_tree::ini_parser, which handles comments in INI-files
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-06-09 09:20:30
#12259: improved version of boost::property_tree::ini_parser, which handles
comments in INI-files
----------------------------------------------+---------------------------
Reporter: jan.krieger@⦠| Owner: cornedbee
Type: Patches | Status: new
Milestone: To Be Determined | Component: property_tree
Version: Boost Release Branch | Severity: Problem
Keywords: boost::property_tree, ini_parser |
----------------------------------------------+---------------------------
The original implementation of boost::property_tree::ini_parser
does ignore comments when reading, therefore they are also deleted
when writing back the Contents of a boost::property_tree.
For us this behaviour was not very desirable, as we cannot comment
our ini files properly then.
Therefore I implemented an alternative Version of
boost::property_tree::ini_parser that reads comments into special
entries in the boost::property_tree and then uses these entries
when writing an INI file to reconstruct the comments.
I think the boost library (and other users) might well Profit from
such functions and they can easily be provided alongside the already
available functions as an alternative.
I'm attaching my Version of the ini_parser and hope you can incorporate
it into the next Releases of boost.
Best,
JAN Krieger (Deidelberger Druckmaschinen AG)
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12259> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC