Subject: [boost] Discovering C++11 lambda argument and result types to construct boost::function
From: Frank Birbacher (bloodymir.crap_at_[hidden])
Date: 2012-02-09 17:20:51
-----BEGIN PGP SIGNED MESSAGE-----
On comp.lang.c++.moderated I talked to Daniel Krügler about how to
discover argument and result types from C++11 lambdas in a template
context. The thread has the title "How to discover argument and result
types from lambda for constructing std::function?"
The task is to provide a function template "make_function" that takes
a C++11 lambda expression and returns a boost::function with the
correct signature to call the lambda. This may be extended to accept
any other callable type.
Is there such a thing already in Boost? I'd like to add it. Would it
go to Boost.Function alone? Or would parts fit into TypeTraits? Does
Doug still maintain Boost.Function?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: keyserver x-hkp://pool.sks-keyservers.net
-----END PGP SIGNATURE-----
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk