From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2e2db8edf2656165 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!p01!fed1read05.POSTED!53ab2750!not-for-mail From: James Dennett User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: [Offtopic] Re: Constructing an object References: <1127480616.817148.231220@g47g2000cwa.googlegroups.com> <1127485400.866646.55170@o13g2000cwo.googlegroups.com> In-Reply-To: <1127485400.866646.55170@o13g2000cwo.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Mon, 16 Jan 2006 22:28:48 -0800 NNTP-Posting-Host: 68.7.248.4 X-Complaints-To: abuse@cox.net X-Trace: fed1read05 1137479312 68.7.248.4 (Tue, 17 Jan 2006 01:28:32 EST) NNTP-Posting-Date: Tue, 17 Jan 2006 01:28:32 EST Organization: Cox Communications Xref: g2news1.google.com comp.lang.ada:2506 Date: 2006-01-16T22:28:48-08:00 List-Id: Matthew Heaney wrote: > Hyman Rosen wrote: > >>Just to correct this, C++ does not require a default constructor >>for objects which are components of classes, but does require them >>for objects which are elements of arrays. > > > Right. I was really thinking of (not being able to use) the class as a > container element when I wrote that. > C++ standard library containers do not require the type of their elements to have a default constructor either; they must be CopyConstructible and Asssignable though. -- James