Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!sgi!shinobu!odin!thebeach.wpd.sgi.com!shap From: shap@thebeach.wpd.sgi.com (Jonathan Shapiro) Newsgroups: comp.lang.c++ Subject: Re: Vector classes in 1.2 (was Re: Re vectors and clobbering...) Message-ID: <10447@odin.corp.sgi.com> Date: 17 Jul 90 03:45:56 GMT References: <6570@helios.TAMU.EDU> <5184@darkstar.ucsc.edu> Sender: news@odin.corp.sgi.com Reply-To: shap@sgi.com Organization: Silicon Graphics, WorkGroup Products Division Lines: 19 In article <5184@darkstar.ucsc.edu>, ericg@ucschu.ucsc.edu (Eric Goodman) writes: > To be a vector type in 1.2 (and maybe later) versions, a class must have a > constructor that takes no arguments *even if* they are defaulted so that > none need be passed. Because the compiler implicitly passes them you're > still confusing it. > > IntArray(int sz = ArraySize) > > is not a legal constructor for a vector type, its not just a TC++ bug (if > it's pre 2.0). > > Eric Goodman, UC Santa Cruz This was relaxed in 2.1, which is moot from the standpoint of what works right now, but may be of interest to some. Take a look at the maroon book. Jon