🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2373

auto_ptr<T> as function return type

#2373
From: ian (i.) willmott
Date: Tue, 31 Oct 1995 21:25
24 lines
1429 bytes
Some recent comments in this newsgroup indicate that there is some problem with
returning an auto_ptr from a function. I was not aware of this; the April 1995
working paper does not mention it and it is not obvious to me why there should
be a problem other than the overhead of constructing and destroying a temporary
object. Could somebody better informed than I am explain what the issue is? My
apologies if this has been discussed before; I missed it.

Also, could somebody post the procedure for submitting comments on the draft
standard? I sent email to 'c++std-notify@research.att.com' in July and got back
a receipt acknowledgement, but nothing else ever came. Again, I expect that
this has been posted before, but I didn't see it. Thanks.

Ian Willmott
Bell-Northern Research
Ottawa, Canada
(613)-763-9688
willmott@bnr.ca


---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <47616o$lvr@bcarh8ab.bnr.ca>
Path: arc1-ca.pugleaf.net!128.32.155.1!matt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt
From: "ian (i.) willmott" <willmott@bnr.ca>
Newsgroups: comp.std.c++
Subject: auto_ptr<T> as function return type
Date: 31 Oct 1995 21:25:28 GMT
Organization: Bell Northern Research
Approved: matt@physics2.Berkeley.EDU (Matt Austern)
Message-ID: <47616o$lvr@bcarh8ab.bnr.ca>
NNTP-Posting-Host: physics2.berkeley.edu