Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2007-06-26 10:04:10

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.4 and
> msvc 7.1, for more infomation, see README and tests in zip packet in vault.
> On 6/25/07, Atry <pop.atry_at_[hidden]> wrote:

Alexander Nasonov

Boost list run by bdawes at, gregod at, cpdaniel at, john at