🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #547

Pointer on function as default parameter

#547
From: chatty%FRLRI61.BITNET
Date: Thu, 26 Oct 1989 10:39
24 lines
810 bytes
g++ 1.35 made no fuss about this code. But g++ 1.36
doesn't seem to like it:


typedef int (* FOO) ();
extern int bar ();

class A {
public:

        A (FOO = bar);
};

A :: A (FOO)
{
}

% g++ -c b.cc
b.cc:11: sorry, not implemented: that operation not supported for default parame
ter


Stephane Chatty         chatty@lri.lri.fr
                        chatty@frlri61.bitnet
Technical Details
Message-ID: <8910261039.AA20351@lri.lri.fr>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!CUNYVM.CUNY.EDU!chatty%FRLRI61.BITNET

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!CUNYVM.CUNY.EDU!chatty%FRLRI61.BITNET
From: chatty%FRLRI61.BITNET@CUNYVM.CUNY.EDU
Newsgroups: gnu.g++.bug
Subject: Pointer on function as default parameter
Message-ID: <8910261039.AA20351@lri.lri.fr>
Date: 26 Oct 89 10:39:01 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 24