Article View: comp.std.c++
Article #2420Re: auto_ptr<T> as function return type
From: Ralph Shnelvar
Date: Sat, 04 Nov 1995 00:30
Date: Sat, 04 Nov 1995 00:30
26 lines
1243 bytes
1243 bytes
kanze <kanze@lts.sel.alcatel.de> wrote: > >The surprise occurs when you `accidentally' pass a temporary, such as >the result of an implicit conversion. Consider the following: . . . > >I suppose the best rule would be to simply ban implicit conversions, >and make the programmer say what he means. But I rather suspect that >the amount of code that this would break will prohibit any such >change. Yesterday, on compuserve I said almost exactly the same thing. Let there be a #pragma or -something- that turns off this awful creation of temporaries. Ralph --- [ 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:
<47ec58$3t3@meg.tesser.com>Path:
arc1-ca.pugleaf.net!128.32.155.1!mattReferences:
<479thu$9k4@bcarh8ab.bnr.ca> <9511021257.AA05327@slsv7xt.lts.sel.alcatel.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt From: ralphs@tesser.com (Ralph Shnelvar) Newsgroups: comp.std.c++ Subject: Re: auto_ptr<T> as function return type Date: 04 Nov 1995 00:30:00 GMT Organization: Tesser, LLC Approved: matt@physics2.Berkeley.EDU (Matt Austern) Message-ID: <47ec58$3t3@meg.tesser.com> References: <479thu$9k4@bcarh8ab.bnr.ca> <9511021257.AA05327@slsv7xt.lts.sel.alcatel.de> NNTP-Posting-Host: physics2.berkeley.edu