
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@gmail.com>:
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. http://boost-consulting.com/vault/index.php?direction=0&order=&directory=Generic%20Programming On 6/25/07, Atry <pop.atry@gmail.com> wrote:
-- Alexander Nasonov