Subject: [boost] [Property Tree] Comments in info format
From: Gavin McNiff (gavin_at_[hidden])
Date: 2015-08-04 13:38:28
First time posting, so hopefully no grave faux pas!
I have found the Property Tree info format very useful for config files.
However, the in-built comment ";" can be a little limiting. In particular,
I miss not being able to comment out an entire block. To this end I have
being modifying the relevant header to file to allow ; // and -- as inline
comments and /* */ as a block comment. These are familiar to many users.
Naturally, with every Boost release I have to re-patch this file, so I
thought maybe the info format could be updated to allow comments in these
styles. Since the format is not any kind of official format and adding new
comment styles should not break existing files, I would hope there should
be no major objections.
I have taken the liberty of attaching the updated header file, as well as
the adapted test file. The _gmcn suffix is just for identification
purposes. The changes in the code are marked with !!! GMcN !!!. The changes
pass in the built-in tests and my own usage tests.