Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2005-01-06 05:45:09

> Could I do ...
> int (int) * p_my_function_pointer;
> Or some other such madness? I'm reading MSDN about the indirection
> operator
> at the moment, maybe that will help to clear this up in my head. Can you
> recommend a page on "function types".

You can certainly do it via a typedef:

typedef int mysig(int);

mysig* p_my_function; // declares function pointer

mysig myproc; // declares a function called myproc with signature mysig.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at