[Boost-bugs] [Boost C++ Libraries] #4437: Comment character in Configuration file parser incompatible with property_tree and Windows INI Files

Subject: [Boost-bugs] [Boost C++ Libraries] #4437: Comment character in Configuration file parser incompatible with property_tree and Windows INI Files
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-15 12:45:23


#4437: Comment character in Configuration file parser incompatible with
property_tree and Windows INI Files
------------------------------+---------------------------------------------
 Reporter: usa@… | Owner: vladimir_prus
     Type: Feature Requests | Status: new
Milestone: Boost 1.44.0 | Component: program_options
  Version: Boost 1.43.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 Hello! [[BR]]
 As documented the comment character used when parsing configuration files
 with parse_config_file is '#'.[[BR]]
 This is incompatible with Boost.PropertyTree and with Windows ini Files.
 Both use ';' as the comment character.[[BR]]
 See boost/property_tree/ini_parser.hpp and
 http://msdn.microsoft.com/en-us/library/ms724348%28VS.85%29.aspx
 .[[BR]]
 It would be nice to add an new option to parse_config_file which adds the
 commentcharacter to use. It can default to '#' which prevents existing
 code from breaking but allows to use windows inifiles by specifying
 ';'.[[BR]]
 [[BR]]
 Best regards[[BR]]
 Sönke Schau

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4437>
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:03 UTC