🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Dave Miller Thu, 05 Nov 1992 23:28
incompatibility in g++ version 2.2.2
#1276
Author: Dave Miller
Date: Thu, 05 Nov 1992 23:28
33 lines
1331 bytes
I've been using g++ to run through a course book on c++ from AT&T.  I've found
one incompatibility with the AT&T version.

In the course text it clearly specifies that the "=" operator does not need to
be overloaded/defined for a class to itself.  It states that because of
the compatibility with C and C's ability to assign a structure to another,
it is not necessary to do that definition.  We do have an AT&T version on
another machine here and I did verify that was true.

For example, given a class:

    class String {

    public:
	...

    private:
	char text[128];
    }

it is possible in a program to:

    String a, b;

    a = b;

without defining the operator.  This doesn't work in g++ but does in the AT&T
version.

Not a biggie, but I thought I could report it anyway.

Dave Miller
Cray Research, Inc.
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