Article View: gnu.g++.bug
Article #1494Re: G++ doesn't handle pointers to functions
From: Jonathan D. Becher
Date: Tue, 11 Oct 1988 22:18
Date: Tue, 11 Oct 1988 22:18
24 lines
949 bytes
949 bytes
In article <68@armada.UUCP>, I write:
> It seems as if g++ doesn't understand formal parameters that
> are pointers to functions.
In my previous posting, you can get around this error by using a typedef.
For some reason, this:
> doThis(int (*f)())
> {
> f();
> }
doesn't work but this does:
typedef int (*ptrFunc)();
doThis(ptrFunc f)
{
f();
}
In any event, it's still a bug.
=====
Jon Becher
becher@cs.duke.edu -OR- argosy!becher@decwrl.dec.com
"I go to parties, some times until four.
It's hard to leave when you can't find the door."
Technical Details
Message-ID:
<69@armada.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!labrea!decwrl!armada!becherReferences:
<68@armada.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!labrea!decwrl!armada!becher From: becher@armada.UUCP (Jonathan D. Becher) Newsgroups: gnu.g++.bug Subject: Re: G++ doesn't handle pointers to functions Message-ID: <69@armada.UUCP> Date: 11 Oct 88 22:18:04 GMT References: <68@armada.UUCP> Organization: Life, etc. Lines: 24