Boost C++ Libraries: Ticket #5379: Support '#' comments in property_tree ini parser https://svn.boost.org/trac10/ticket/5379 <p> The INI parser currently supports only the semi-colon symbol as comment marker. </p> <p> The wikipedia article on INI files, <a class="ext-link" href="http://en.wikipedia.org/wiki/INI_file#Varying_features"><span class="icon">​</span>http://en.wikipedia.org/wiki/INI_file#Varying_features</a> notes: </p> <blockquote> <p> Some software supports the use of the number sign (#) as an alternative to the semicolon for indicating comments. </p> </blockquote> <p> The feature would be useful to me, since I'm using a number of existing files that use '#' as a comment marker. Also, this would make the ini parser compatible with java properties files. </p> <p> I'm attaching a patch that enables the use of # for comments. A more elaborate implementation could make the feature optional, as to avoid breaking ini files with properties starting with #. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5379 Trac 1.4.3 Dimitri Kaparis <kaparis.dimitri@…> Sun, 27 Mar 2011 22:14:51 GMT attachment set https://svn.boost.org/trac10/ticket/5379 https://svn.boost.org/trac10/ticket/5379 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_1.45_libpropertytree.patch</span> </li> </ul> <p> Patch to support # as comment marker in ini parser </p> Ticket Sebastian Redl Mon, 28 Mar 2011 08:50:20 GMT <link>https://svn.boost.org/trac10/ticket/5379#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5379#comment:1</guid> <description> <p> As it happens, I had the very same need a few days ago and implemented this, so it's available on trunk. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Mon, 16 May 2011 21:36:02 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5379#comment:2 https://svn.boost.org/trac10/ticket/5379#comment:2 <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">fixed</span> </li> </ul> <p> Fixed in <a class="changeset" href="https://svn.boost.org/trac10/changeset/71994" title="Merge r70664-70666 to release. Improves INI parser and brings ...">r71994</a>. </p> Ticket