Boost logo

Proto :

Subject: Re: [proto] expanding Proto's library of callables
From: Thomas Heller (thom.heller_at_[hidden])
Date: 2010-12-28 05:39:54

Eric Niebler wrote:

> Proto ships with a very small collection of callables for use in Proto
> transforms: wrappers for fusion algorithms like reverse and pop_front
> and the like. For 1.46, there will be a few more: make_pair, first,
> second, and wrappers for a few more Fusion algorithms. It's woefully
> incomplete, though.
> I have an idea. Phoenix3 defines *all* these juicy callables under the
> stl/ directory. I can't #include them in Proto because that would create
> a circular dependency. Why don't we just move the definitions of the
> function objects into Proto and make them Proto callables? Phoenix3 can
> just #include 'em and use 'em.
> Thoughts?

I just saw that you added functional::at.
I was wondering about the rationale of your decision to make it a non
My gut feeling would have been to have proto::functional::at<N>(seq)
and not proto::functional::at(seq, N).

Proto list run by eric at