Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-10-21 08:41:12


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
 


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk