🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: auto_ptr problems

#4121
From: Fergus Henderson
Date: Sat, 20 Apr 1996 15:45
28 lines
1904 bytes
In comp.lang.c++.moderated, kanze@gabi-soft.fr (J. Kanze) writes:

>"Nathan Myers" <ncm@cantrip.org> writes:
>
>|> The Draft standard requires that your compiler not try to generate
>|> auto_ptr::operator->() unless you use it.
[...]
>The requirement in the draft that Nathan is referring to (and which *is*
>new, and not supported by many compilers) is that they not check the
>return type of operator-> *unless* they actual have to generate the
>function.  (I'm not sure of the exact words, but that is more or less
>the meaning.)

I'm sure you're right, but when I had a look for this in the draft
standard, I couldn't find it.  Could anyone please direct me to the
appropriate place?

--
Fergus Henderson <fjh@cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3         |     -- the last words of T. S. Garp.


[ 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         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
Technical Details
Message-ID: <4l9vb5$665@mulga.cs.mu.OZ.AU>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
References: <4l0uib$snf@netlab.cs.rpi.edu> <4l3ujn$cl5@netlab.cs.rpi.edu> <4l86m8$s53@netlab.cs.rpi.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
From: fjh@mundook.cs.mu.OZ.AU (Fergus Henderson)
Newsgroups: comp.std.c++
Subject: Re: auto_ptr problems
Date: 20 Apr 1996 15:45:57 GMT
Organization: Comp Sci, University of Melbourne
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <4l9vb5$665@mulga.cs.mu.OZ.AU>
References: <4l0uib$snf@netlab.cs.rpi.edu> <4l3ujn$cl5@netlab.cs.rpi.edu> <4l86m8$s53@netlab.cs.rpi.edu>
NNTP-Posting-Host: taumet.eng.sun.com
X-Nntp-Posting-Host: mundook.cs.mu.oz.au
Content-Length: 919
Originator: clamage@taumet