Boost C++ Libraries: Ticket #4437: Comment character in Configuration file parser incompatible with property_tree and Windows INI Files https://svn.boost.org/trac10/ticket/4437 <p> Hello! <br /> As documented the comment character used when parsing configuration files with parse_config_file is '#'.<br /> This is incompatible with Boost.<a class="missing wiki">PropertyTree</a> and with Windows ini Files. Both use ';' as the comment character.<br /> See boost/property_tree/ini_parser.hpp and <a class="ext-link" href="http://msdn.microsoft.com/en-us/library/ms724348%28VS.85%29.aspx"><span class="icon">​</span>http://msdn.microsoft.com/en-us/library/ms724348%28VS.85%29.aspx</a> .<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 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4437 Trac 1.4.3 Vladimir Prus Sat, 08 Jan 2011 10:42:43 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4437#comment:1 https://svn.boost.org/trac10/ticket/4437#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> Regretfully, I don't have the time to implement more flexible config file parser. I also don't care much about compatibility with <a class="missing wiki">PropertyTree</a> (especially given that it was added after <a class="missing wiki">ProgramOptions</a>). So, while I would accept patches that make config file parsing more flexibile, this is not a feature request I'm gonna fix. Sorry! </p> Ticket