From: Michael Roth <mroth@arago.de>
To: egcs@cygnus.com
Subject: std::auto_ptr bugs
Date: Sun, 05 Apr 1998 17:27:00 -0000 [thread overview]
Message-ID: <Pine.SGI.3.96.980405203848.2680E-100000@newton.arago.de> (raw)
Hi,
First, the std::auto_ptr is commented out in "memory" (egcs 1.0.*)
and their is a note that the class is still discussed by the C++
standardization committee. Is this really true ?
Second, if you uncomment std::auto_ptr their are several errors:
1.) 'auto_ptr& operator=(const auto_ptr& a)' misses a 'return *this'
after the closing bracket of the 'if' block.
2.) 'auto_ptr& operator=(const auto_ptr<T>& a)' misses the
'return *this' after the closing bracket of the 'if' block, too.
3.) IMHO 'X* get() const' is wrong. If I'm not false 'get()' should get
the ownership of the pointer back ('owns=true;' is missing) !?!?
4.) The line 'X* release const __STL_NOTHROW { owns = false; return ptr }'
is buggy. It misses a '()' after the word 'release'.
cu
Michael
o-------------------------------------------------------o
! arago, Michael Roth !
! Institut fuer komplexes Software Engineer !
! Datenmanagement GmbH eMail: mroth@arago.de !
! Fichtestr. 12 !
! 60316 Frankfurt am Main http://www.arago.de !
! Tel: +49-69-40568-0 Fax: +49-69-40568-111 !
o-------------------------------------------------------o
next reply other threads:[~1998-04-05 17:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-05 17:27 Michael Roth [this message]
1998-04-06 15:25 ` Joe Buck
1998-04-13 12:16 Thomas Hoyt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.SGI.3.96.980405203848.2680E-100000@newton.arago.de \
--to=mroth@arago.de \
--cc=egcs@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).