Boost logo

Boost :

From: Atry (pop.atry_at_[hidden])
Date: 2007-06-26 13:02:39


The functions generated by static lambda will be very similar to C
functions. It would not bind any data. Runtime cost of static lambda
expression is zero.

On 6/26/07, Alexander Nasonov <alnsn_at_[hidden]> wrote:
>
> I couldn't find out quickly if you're applying BOOST_TYPEOF to passed
> lambda expression but if you do, it would blow up your computer if compiler
> doesn't support native typeof (Hint: try passing -DBOOST_TYPEOF_COMPLIANT to
> compiler's arguments).
>
> Have you considered something like
>
> int (*static_fun)(int const&, int const&) = (_1 + _2 +
> 3).get_static_function(1, 2);
>
> get_static_function does not necessarily accept values, it may have a
> different interface:
> (_1 + _2 + 3).get_static_function<int const&, int const&>();
> (_1 + _2 + 3).get_static_function(mpl::vector<int const&, int const&>());
>
> Does your idea help to improve performance and/or reduce size of program
> that has a lot of conversions from lambda expressions to tr1::function?
>
> 26.06.07, 17:31, Atry <pop.atry_at_[hidden]>:
>
> > I wrote a intial version, I have tested it on cygwin ported gcc 3.4.4and
> > msvc 7.1, for more infomation, see README and tests in zip packet in
> vault.
> >
> http://boost-consulting.com/vault/index.php?direction=0&order=&directory=Generic%20Programming
> > On 6/25/07, Atry <pop.atry_at_[hidden]> wrote:
>
> --
> Alexander Nasonov
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


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