|
Boost : |
From: Daniel Walker (daniel.j.walker_at_[hidden])
Date: 2007-04-05 13:53:12
On 3/27/07, David Abrahams <dave_at_[hidden]> wrote:
>
> on Tue Mar 27 2007, "Daniel Walker" <daniel.j.walker-AT-gmail.com> wrote:
>
> > On 3/23/07, David Abrahams <dave_at_[hidden]> wrote:
> >>
> >> I don't get it. As mentioned earlier, we automatedly test our
> >> examples and that one passed. Any idea why?
> >
> > I looked in boost/libs/parameter/test and grep lambda returned
> > nothing.
>
> It's not there.
>
> > I found three tests for lazy binding with operator|| and none
> > used lambda. It looks like lambda was never test. Is there some other
> > way it would have been tested that I'm missing?
>
> Yes, we have a system (see tools/litre) that allows us to embed
> testing instructions in the source for our documentation. Actually
> the process assembles source files and a Jamfile. We then run all the
> tests in that Jamfile. If you look at the .rst files that document
> the use of lambda, you can see that those examples are tested.
Aha! Litre sounds like a good idea. How are you supposed to run it?
I'd like to try to see what happens with the .rst files that document
using lambda. Is the litre test a build target in a Jamfile?
>
> >> I'm open to whatever you and Daniel agree on.
> >
> > I like the idea of replacing the lambda example with a boost::bind
> > example as Daniel suggested above.
>
> Daniel, can you do that?
You mean Daniel Wallin, not me, right?
Daniel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk