Board index » Visual Studio » Array of function pointer that points to return ...
|
Kurk
|
|
Kurk
|
Array of function pointer that points to return ...
Visual Studio170
Suppose I have : void f1() { TRACE("f1\n"); }; void f2() { TRACE("f2\n"); }; void Dummy() { return; } void (*f[3]) (); f[0] = f1; f[1] = f2; f[2] = Dummy; I want the f[2] call to be a return (call do nothing). Is there a way to make this without defining a Dummy function that just return. Something like f[2] = void (*) () return; - |
| Carl
Registered User |
Fri Feb 27 10:48:24 CST 2004
Re:Array of function pointer that points to return ...
H.B. wrote:
QuoteSuppose I have : - |
| Arnaud
Registered User |
Fri Feb 27 13:23:22 CST 2004
Re:Array of function pointer that points to return ...
H.B. wrote:
QuoteSuppose I have : www.boost.org/libs/lambda/doc/index.html">www.boost.org/libs/lambda/doc/index.html for example. Arnaud - |
