From -1351654908079883904
X-Google-Thread: f78e5,51456c3eb8f9490e
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII
Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn12feed!worldnet.att.net!207.14.113.41!news.alt.net!comp-std-cpp-robomod!not-for-mail
From: "Nicola Musatti" <nicola.musatti@gmail.com>
Newsgroups: comp.std.c++
Subject: Re: Copy Constructor Confusion!
Date: Thu, 17 Aug 2006 10:59:58 CST
Organization: http://groups.google.com
Lines: 19
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <1155825731.607105.13010@m73g2000cwd.googlegroups.com>
References: <1155645873.296811.3890@74g2000cwt.googlegroups.com>
   <hPkEg.12700$j7.324766@news.indigo.ie>
   <4kebv5Fbjid9U3@individual.net>
   <ebvd6b$2q45$1@news2.ipartners.pl>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1155825737 16361 127.0.0.1 (17 Aug 2006 14:42:17 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 17 Aug 2006 14:42:17 +0000 (UTC)
Return-Path: <devnull@stump.algebra.com>
X-Authentication-Warning: mulga.csse.unimelb.edu.au: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Original-To: std-c++@mailman.ucar.edu
Delivered-To: std-c++@mailman.ucar.edu
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060729 SeaMonkey/1.0.4,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 riprxbr00.rit:80 (squid/2.5.STABLE3)
Complaints-To: groups-abuse@google.com
Injection-Info: m73g2000cwd.googlegroups.com; posting-host=212.239.118.101;
   posting-account=9n3cLg0AAABXqZC3npS4wOhEJhS9Fp-a
X-Virus-Scanned: amavisd-new at ucar.edu
X-Virus-Scanned: amavisd-new at csse.unimelb.edu.au
X-MIME-Autoconverted: from quoted-printable to 8bit by mulga.csse.unimelb.edu.au id k7HEghxE026122
X-Virus-Scanned: amavisd-new at csse.unimelb.edu.au
Xref: g2news2.google.com comp.std.c++:3311


K�i�tof �elechovski wrote:
[...]
> C++ is schizophrenic when it comes to default initialization.  If you write
> T t = T(), you run into the problem of inaccessible copy constructor.  If
> you write T t, you will get uninitialized variables for built-in types.

..not to mention that if you write T t() you are declaring a function.

Cheers,
Nicola Musatti


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]



