From -3723349613729570098
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,24c0140d54165625
X-Google-Attributes: gidf78e5,public
From: Francis Glassborow <francis@robinton.demon.co.uk>
Subject: Re: a question about temporary exception object
Date: 1998/11/06
Message-ID: <MWi2p3ANY1Q2Ewx5@robinton.demon.co.uk>#1/1
X-Deja-AN: 409155427
Approved: stephen.clamage@sun.com (comp.std.c++)
References: <3642A62C.CF2FC315@ccnet.com>
X-UID: 0000000001
X-Status: $$$T
Organization: Southfield Microcomputer SS
Mime-Version: 1.0
Reply-To: Francis Glassborow <francisG@robinton.demon.co.uk>
Newsgroups: comp.std.c++
Originator: clamage@taumet


In article <3642A62C.CF2FC315@ccnet.com>, Gilbert Chang
<gchang@ccnet.com> writes
>I experimented with VC++6.0.  In both cases, the constructor was called
>once, but the destructor was called twice.  Did I do something wrong or
>is the compiler simply broken?

Did you instrument the copy ctor? (because forgetting that is the
commonest cause for an apparent mismatch between documented ctors and
dtors)

Francis Glassborow      Chair of Association of C & C++ Users
64 Southfield Rd
Oxford OX4 1PA          +44(0)1865 246490
All opinions are mine and do not represent those of any organisation


[ 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://reality.sgi.com/austern_mti/std-c++/faq.html              ]




