Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2005-02-11 10:50:30


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?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 

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