🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++
Article #236

When polymorphic, when not?

#236
From: Michael Tiemann
Date: Fri, 08 Dec 1989 09:13
12 lines
930 bytes
     32	    B b = d;     // g++ won't compile this line ("unexpected argument
     33	                 // to constructor `B'")
		// apparently a bug in g++.  B always has a copy
		// constructor B::const(B&) and you can bind the
		// argument of that constructor to a D.

Breaking with past tradition, GNU C++ 1.36.2 will give default copy
constructor when B has a constructor defined.  It is slated for
release very soon.

Michael
Technical Details
Message-ID: <8912080913.AA14033@lurch.Stanford.EDU>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!LURCH.STANFORD.EDU!tiemann
References: <10225@alice.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!LURCH.STANFORD.EDU!tiemann
From: tiemann@LURCH.STANFORD.EDU (Michael Tiemann)
Newsgroups: gnu.g++
Subject: When polymorphic, when not?
Message-ID: <8912080913.AA14033@lurch.Stanford.EDU>
Date: 8 Dec 89 09:13:12 GMT
References: <10225@alice.UUCP>
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: tiemann@lurch.stanford.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 12