
Is is possible to, given a functor generated as a result of a lambda bind expression, pull the return type from the lambda functor? (still digging through the lambda bind code and have not found the answer to this yet. I sent a previous post with sample code that shows what I am trying to do) Any help or direction would be greatly appreciated. Thanks Brian

Brian Braatz wrote:
Is is possible to, given a functor generated as a result of a lambda bind expression, pull the return type from the lambda functor?
(still digging through the lambda bind code and have not found the answer to this yet. I sent a previous post with sample code that shows what I am trying to do)
Any help or direction would be greatly appreciated.
I'm not sure why the lambda library maintainers haven't replied yet. They're usually more responsive than this. Sorry... -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

Brian Braatz wrote:
Is is possible to, given a functor generated as a result of a lambda bind expression, pull the return type from the lambda functor?
(still digging through the lambda bind code and have not found the answer to this yet. I sent a previous post with sample code that shows what I am trying to do)
Any help or direction would be greatly appreciated.
In theory, given a lambda function object F, its return type is typedef typename F::template sig<A>::type result_type; where A is the argument tuple, boost::tuple<int, int> for instance. But this doesn't work with lambda::bind; sig<> returns null_type. I don't know why; I wasn't able to follow the Lambda code. It's probably a bug.

"Brian Braatz" <brianb@rmtg.com> wrote
Is is possible to, given a functor generated as a result of a lambda bind expression, pull the return type from the lambda functor?
I am wondering if "result_of" may be something that you are looking for. OTOH, I don't really know what the status of this library is. Regards, Arkadiy
participants (4)
-
Arkadiy Vertleyb
-
Brian Braatz
-
David Abrahams
-
Peter Dimov