Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!zaphod.mps.ohio-state.edu!samsung!think.com!linus!linus!maestro!fkuhl From: fkuhl@maestro.mitre.org (F. S. Kuhl) Newsgroups: comp.lang.c++ Subject: translator error Message-ID: <1991Jan18.205053.22916@linus.mitre.org> Date: 18 Jan 91 20:50:53 GMT Sender: news@linus.mitre.org (Linus's News) Reply-To: fkuhl@maestro.mitre.org (F. S. Kuhl) Organization: The MITRE Corporation, McLean, Va Lines: 20 Nntp-Posting-Host: maestro.mitre.org Why does the translator (Sun packaging of AT&T 2.0) object to the following? I define in a base class SBName a virtual operator virtual SBName& operator = (const char *); which I intend to inherit in a derived class, ObjectName. In my main routine I say: ObjectName myObjName; myObjName = "hello"; and the translator says of the second line "consol.cc", line 51: error: bad argument list for ObjectName::ObjectName() (no match against any ObjectName::ObjectName()) What am I missing? -- Frederick Kuhl fkuhl@mitre.org Civil Systems Division The MITRE Corporation