Topic: reset function in auto_ptr
Author: "didier lobeau" <didier.lobeau@free.fr>
Date: Mon, 12 Mar 2001 19:16:25 GMT Raw View
i all
i d like to know if the reset function of auto_ptr is standard(i mean
Iso/Ansi).
I had problem recently cause i develop a code under C++ builder 5 and i use
the reset function, but when i try to pass this code under visual C++ 6, it
was as if the reset function wasn't define.
thanx for your help
--
************************************
*Didier LOBEAU *
*1 Rue LISSE St LOUIS *
* 13100 Aix en Provence *
* 04 42 21 41 92 *
************************************
---
[ 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 ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]
Author: "John Hickin" <hickin@nortelnetworks.com>
Date: Mon, 12 Mar 2001 16:19:18 CST Raw View
didier lobeau wrote:
>
> i all
>
> i d like to know if the reset function of auto_ptr is standard(i mean
> Iso/Ansi).
> I had problem recently cause i develop a code under C++ builder 5 and i use
> the reset function, but when i try to pass this code under visual C++ 6, it
> was as if the reset function wasn't define.
>
Yes, it is there. MSVC has an auto_ptr<> based on an outdated
specification. It also has a subtle bug whose fix you may want to look
at the various fixes listed at www.dinkumware.com/vc_fixes.html.
Regards, John.
---
[ 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 ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]