🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: auto_ptr<T> as function return type

#2559
From: jodle
Date: Wed, 15 Nov 1995 07:39
18 lines
1189 bytes
Ralph Shnelvar (ralphs@tesser.com) wrote:

: Let there be a #pragma or -something- that turns off this awful
: creation of temporaries.

I think it would be a bad thing for the standard to prescribe what pragmas
a compiler will support.  It's sufficient that it doesn't preclude them. 
Furthermore, privately declared copy constructors work wonders in this
regard.  I've found that where programmers say they don't want temporaries
generated, what they really don't want is their copy implementations
stressed. 


---
[ 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: <48bpr4$6ru@news2.delphi.com>
Path: arc1-ca.pugleaf.net!newsxfer.itd.umich.edu!agate!agate!Matt
References: <479thu$9k4@bcarh8ab.bnr.ca> <9511021257.AA05327@slsv7xt.lts.sel.alcatel.de> <47ec58$3t3@meg.tesser.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!newsxfer.itd.umich.edu!agate!agate!Matt
From: jodle@bix.com (jodle)
Newsgroups: comp.std.c++
Subject: Re: auto_ptr<T> as function return type
Date: 15 Nov 1995 07:39:57 GMT
Organization: BIX
Approved: Matt@Austern
Message-ID: <48bpr4$6ru@news2.delphi.com>
References: <479thu$9k4@bcarh8ab.bnr.ca> <9511021257.AA05327@slsv7xt.lts.sel.alcatel.de> <47ec58$3t3@meg.tesser.com>
NNTP-Posting-Host: austern.hip.berkeley.edu