Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-02-14 02:32:08


On Saturday 12 February 2005 23:24, David Abrahams wrote:
> David Abrahams <dave_at_[hidden]> writes:
> > Vladimir Prus <ghost_at_[hidden]> writes:
> >> On Thursday 10 February 2005 22:20, David Abrahams wrote:
> >>> I need to make a generator that will generate a given target from any
> >>> (unrestricted) source type at all. I'm not sure what to pass to
> >>> generators.register-standard in order to do that.
> >>
> >> I think it's best to pass nothing, and override the 'run' method to
> >> immediately call 'construct-result' on sources.
> >
> > Why should I need to override the 'run' method?
> >
> > If passing no sources to the constructor allows the generator to match
> > anything at all, it seems to me that anything handling sources
> > thereafter should work in the normal way no?
>
> I checked in a small patch that enables that to work.

Thanks, specifying no source types is more reasonable than overriding the
'run' method.

- Volodya

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk