Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!ira.uka.de!smurf!nadia!ananke!kaiser From: kaiser@ananke.stgt.sub.org (Andreas Kaiser) Newsgroups: comp.lang.c++ Subject: translator error Message-ID: <75.279B57DF@ananke.stgt.sub.org> Date: 21 Jan 91 20:46:52 GMT Organization: Subnet-Fidonet Gateway, Stuttgart, FRG Lines: 18 In a message of , F. S. Kuhl (fkuhl@maestro.mitre.org ) writes: FSK> Why does the translator (Sun packaging of AT&T 2.0) object to the FSK> following? I define in a base class SBName a virtual operator FSK> virtual SBName& operator = (const char *); FSK> which I intend to inherit in a derived class, ObjectName. ARM, 13.4.3, page 334: "The assignment function operator=() must be a nonstatic member function; it is not inherited (@12.8). Instead, unless the user defined operator= for a class X, operator= is defined, by default, as memberwise assignment of the members of class X." Andreas