Boost logo

Boost :

Subject: Re: [boost] Proposal: Add Loki Library's SafeFormat to Boost:
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2009-01-02 04:37:24


> Hartmut Kaiser wrote:
> > So, please let me use this thread for a selfless plug :-P. Boost
> > already has a versatile and powerful output formatting library:
> Spirit V2!
> >
> > You might think, well Spirit used to be a parser library, not
> > something usable for output formatting. But with the event of Spirit
> > V2 this has changed. Spirit V2 now is not only a parser generator
> > library anymore (Spirit Classic, aka V1.x, now called Spirit.Qi), but
> > got extended to cover the domain of (output) generators as well
> > (Spirit.Karma). Admittedly, the docs are not complete yet, but if you
> > know how to build a parser using Spirit.Qi you shouldn't have
> problems using Spirit.Karma either.
>
> This sounded so cool that I took a look at it...
>
> > Everything
> > is in the SVN (and in Boost V1.37, BTW) and the examples should
> > provide a fairly good starting point.
>
> I first tried reading the docs, but karma is not yet covered. So I went
> to "boost_trunk\libs\spirit\example\karma" and typed "bjam --
> toolset=msvc", in order to play with the examples. bjam complained
> about line 11 of Jamfile ("exe actions : actions.cpp ;", "actions"
> seems to collide with a bjam keyword),

Doh! Is that documented somewhere?

> so I removed this line and tried
> again. It took a surprising long time, and two files failed to compile
> (quick_start1.cpp and basic_facilities.cpp).

Yes, compile times are an issue right now. But we're working on improving
things.

> I guess I should have used
> V1.37 instead of trunk, but I'm too lazy to check this. Instead I
> attached the error-output (errors.txt), because I guess it is something
> trivial, for somebody with enough experience :-)

Thanks, I'll have a look. Shouldn't be something serious.

Regards Hartmut


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk