Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #6156

Re: function return of type auto_ptr

From Edek <edek.pienkowski@gmail.com>
Newsgroups comp.lang.c++
Subject Re: function return of type auto_ptr
Date 2011-06-03 21:45 +0200
Organization ATMAN - ATM S.A.
Message-ID <isbdlc$jh2$1@node2.news.atman.pl> (permalink)
References <is2s62$4om$1@tdi.cu.mi.it> <bde83f0f-7e50-4b92-bbe4-31a063b58e54@s41g2000prb.googlegroups.com> <7b87dab2-447b-4271-8a27-b80f8afa8314@gu8g2000vbb.googlegroups.com>

Show all headers | View raw


On 06/01/2011 11:24 AM, SG wrote:
> On 31 Mai, 16:57, gwowen wrote:
>> On May 31, 3:05 pm, softwareEngineer wrote:
>>
>>> i've a question about auto_ptr. It's correct returning an auto_ptr from function ?
>>
>> yes
>>
>>> This is only a dummy example but i wold know if this is standard and if it is a
>>> good design practice.
>>
>> Good enough for Scott Meyers, which is good enough for me...
>> http://www.gotw.ca/publications/using_auto_ptr_effectively.htm
>
> This article is by Herb Sutter. ;-)

Now, how does that sound in the context that auto_ptr is deprecated?

Back to comp.lang.c++ | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

function return of type auto_ptr softwareEngineer <ovNOSPAM@NOSPAMlibero.it> - 2011-05-31 16:05 +0200
  Re: function return of type auto_ptr gwowen <gwowen@gmail.com> - 2011-05-31 07:57 -0700
    Re: function return of type auto_ptr SG <s.gesemann@gmail.com> - 2011-06-01 02:24 -0700
      Re: function return of type auto_ptr gwowen <gwowen@gmail.com> - 2011-06-01 02:26 -0700
      Re: function return of type auto_ptr Edek <edek.pienkowski@gmail.com> - 2011-06-03 21:45 +0200
        Re: function return of type auto_ptr "Alf P. Steinbach /Usenet" <alf.p.steinbach+usenet@gmail.com> - 2011-06-03 22:31 +0200
  Re: function return of type auto_ptr Howard Hinnant <howard.hinnant@gmail.com> - 2011-05-31 13:44 -0700

csiph-web