🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by chatty%FRLRI61.BITNET Thu, 26 Oct 1989 10:39
Pointer on function as default parameter
#547
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads