|
Boost Users : |
Subject: Re: [Boost-users] Arguments types for object created with boost::bind()
From: Lars Viklund (zao_at_[hidden])
Date: 2012-06-21 18:23:38
On Thu, Jun 21, 2012 at 04:42:59PM +0400, niXman wrote:
> Hello!
>
> I need to get the types list for operator() for result type of boost::bind()
>
> Example:
>
> void func(int, long) {}
> auto o = boost::bind(&func, _1, _2);
> o( ??? ); // what types of arguments?
If you use Phoenix's bind, there might be some limited introspection
possible, due to the fact that the result is a Proto tree, with all the
traversal and queries you can perform against such a beast.
I have no idea how to achieve such a thing, however.
-- Lars Viklund | zao_at_[hidden]
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net