Opened 10 years ago

#7759 new Feature Requests

Support ; as comment character in config file

Reported by: uniwangshan@… Owned by: Vladimir Prus
Milestone: To Be Determined Component: program_options
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.