[bind] and overloading function

Is it possible (exist way) to give instructions to functions boost::bind or boost::lambda::bind which from overloading functions I need to pass?

I am know only one way - to define pointer to function with needed signature, to initialize it with needed function and pass this pointer to bind. It is single way? -- Regards, Alexey.

Alexey Nikitin wrote:
I am know only one way - to define pointer to function with needed signature, to initialize it with needed function and pass this pointer to bind. It is single way?
You can also use cast notation when taking the pointer: static_cast<void (*)(int)>(&foo) - Volodya

Vladimir Prus wrote:
Alexey Nikitin wrote:
I am know only one way - to define pointer to function with needed signature, to initialize it with needed function and pass this pointer to bind. It is single way?
You can also use cast notation when taking the pointer:
static_cast<void (*)(int)>(&foo)
Arturo Cuebas suggested a way of doing this in the thread starting here: http://lists.boost.org/MailArchives/boost/msg10326.php
participants (3)
-
Alexey Nikitin
-
Daniel James
-
Vladimir Prus