Article View: comp.std.c++
Article #2176Q: auto_ptr
From: Jean-Louis Moser
Date: Wed, 11 Oct 1995 17:27
Date: Wed, 11 Oct 1995 17:27
26 lines
1436 bytes
1436 bytes
I got the implementation of auto_ptr in the draft standard
- Is there a reason why the method operator=(T*) isn't
implemented.
- Why operator= doesn't respect the classical sementic of
this operator, returning T* to enable: p1 = p2 = p3;
- With this implementation it's not possible to build auto_ptr
on const T*, because constructor takes a T* as argument.
jlm
ps: Could somebody give me pointers to good publications
on "all about reference counting and smart pointers"
--
+----------------------------+------------------------------------+
| Jean-Louis Moser | 2001 SA |
| tel: 33 (1)46.66.54.54 | 2, rue de la renaissance |
| Email: jlm@two-oo-one.fr | F-92184 Antony Cedex |
+----------------------------+------------------------------------+
---
[ 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:
<JLM.95Oct11152506@ludo.two-oo-one.fr>Path:
arc1-ca.pugleaf.net!128.32.155.1!mattShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt From: jlm@two-oo-one.fr (Jean-Louis Moser) Newsgroups: comp.std.c++ Subject: Q: auto_ptr Followup-To: comp.std.c++ Date: 11 Oct 1995 17:27:25 GMT Organization: Images 2001 S.A Approved: matt@physics2.Berkeley.EDU (Matt Austern) Message-ID: <JLM.95Oct11152506@ludo.two-oo-one.fr> NNTP-Posting-Host: physics2.berkeley.edu