|
Boost : |
Subject: Re: [boost] [Property Tree] Comments in info format
From: Gavin McNiff (gavin_at_[hidden])
Date: 2015-08-05 11:56:16
On Wed, 5 Aug 2015 at 02:27 Edward Diener <eldiener_at_[hidden]> wrote:
> On 8/4/2015 1:38 PM, Gavin McNiff wrote:
> > 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.
> >
> > Best regards
> >
> > Gavin McNiff
>
> What would be better for your purposes would be to create a PR request
> off of the 'develop' branch of property tree. If you have a github
> account ( its free ) and know how to use git, this should be relatively
> easy for you to do.
OK. Done
>
>
_______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk