
25 Sep
2012
25 Sep
'12
2:52 a.m.
On 9/24/2012 4:38 PM, Mathias Gaunard wrote:
On 09/24/2012 09:01 PM, Eric Niebler wrote:
C++11 lambdas have the nice property that stateless ones are implicitly convertible to raw function pointers. This can be implemented for Phoenix if we can rely on the default-constructability of Phoenix lambda types. In my stackoverflow answer I show how. It'd be pretty cool if this were a standard part of all Phoenix lambdas. Is there interest?
That probably requires that the function object be monomorphic too.
It doesn't. See the implementation here: http://stackoverflow.com/questions/10144948/static-functions-from-boost-lamb... -- Eric Niebler BoostPro Computing http://www.boostpro.com