From: Eric Niebler (eric_at_[hidden])
Date: 2007-08-27 12:37:54
(Sorry for the delay, I've been away on vacation.)
Felipe Magno de Almeida wrote:
> I can't make it out how to do the arity transformation for
> proto::functions varargs too.
> Could anybody shed some light?
I think I may need more information about what you're trying to do.
There is a (rather advanced) example of using the fold transform on a
proto::function with varargs here: http://tinyurl.com/2l9srv. Does that
help any? When dealing with varargs, the fold and reverse_fold
transforms are especially handy because they iterate over the sequence
of children nodes for you -- you don't have to worry about how many
there are. So if you can express your transform using fold, it'll make
-- Eric Niebler Boost Consulting www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk