🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by john (j.d.) hickin Wed, 10 Apr 1996 14:56
Re: sample auto_ptr template
#3980
Author: john (j.d.) hickin
Date: Wed, 10 Apr 1996 14:56
20 lines
1604 bytes
|> What you can do is design your code so that you know who owns each object when.
|> The auto_ptr template can help you implement such designs safely.  If you
|> cannot design your code to work with auto_ptr you probably need garbage
|> collection of some form.

I have no problem with this approach which is, in fact, forced on one by the
sample implementation, because it is no longer possible to determine ownership
through a member function.

-- 
John Hickin      Nortel Technology, Montreal, Quebec
(514) 765-7924   hickin@nortel.ca



[ 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                             ]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads