[Boost-bugs] [Boost C++ Libraries] #7759: Support ; as comment character in config file

Subject: [Boost-bugs] [Boost C++ Libraries] #7759: Support ; as comment character in config file
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-03 17:09:12


#7759: Support ; as comment character in config file
-----------------------------------+----------------------------------------
 Reporter: uniwangshan@… | Owner: vladimir_prus
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: program_options
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: |
-----------------------------------+----------------------------------------
 Currently # is hardcoded as comment character, but for ini file, both #
 and ; are widely used as comment characters.

 Because program_options doesn't allow a non-section line without =, the
 config file parsing will fail if there are ; comments which doesn't have =
 in it.

 For example, this line will fail to parse:

 ; This is a comment

 The easiest fix will be adding check of ; in
 common_config_file_iterator::get()

 Thanks.

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