5 Jan
2005
5 Jan
'05
7:25 p.m.
Foster, Gareth wrote:
boost::is_function
::value I know it's confusing. Most C++ programmers never see a function type in the wild. You can use remove_pointer to turn a pointer-to-function into a function.
Could I do ...
int (int) * p_my_function_pointer;
Or some other such madness?
Yes, some other. The "*" and variable name goes in between the return type and the parameter list if you're declaring a function pointer: int (*p_my_function_pointer) (int)
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".
'fraid not. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com