Boost logo

Boost :

From: Joel de Guzman (joel_at_[hidden])
Date: 2006-05-10 20:08:11


Tobias Schwinger wrote:
> Tobias Schwinger wrote:
>> * Design
>>
>> 1. I'm missing an extension point in the generators to turn them into a
>> type-preserving variadic input facility. Elaboration:
>>
>> Currently e.g. "make_vector" is an inline function. My suggestion is to turn it into
>> a global constant of the type of a class template instantiation e.g. "vector_generator<F>".
>>
>> vector_generator<identity_function> const make_vector = ...
>>
>> This way it's easy to create user-defined function objects, that take a variable number
>> of arguments, turn them into a tuple and finally use this information to create a
>> user-defined object (that is, entirely without using Boost.PP). Of course that beast
>> would be able to take a stateful functor in its ctor.
>
> Hmmm -- I had hoped for a comment on this one...
> Did my review read too negative? Was something unclear?

I think we just missed it. Sorry. Yes, I think your proposal makes
sense. That in fact is the very essence of Phoenix. Let me think
about it some more to see how it would fit in the overall picture.
At the very least, I like it.

Regards,

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

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