.mors.wiggy.net (8.12.0.Beta10/8.12.0.Beta10/Debian
8.12.0.Beta10) id f5IL3SD1026158;
Mon, 18 Jun 2001 23:03:28 +0200
Message-Id: <[EMAIL PROTECTED]>
From: Wichert Akkerman <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: error in auto_ptr impleme
Matthias Klose <[EMAIL PROTECTED]> writes:
| The code below does not compile with g++ 3.0, but it seems correct
| judging by my C++ books.
No serious up-to-date C++ book can claim the code below should work.
| list > lapi;
That is incorrect: You cannot put an auto_ptr<> in a standard
contain
Matthias Klose wrote:
>
> The code below does not compile with g++ 3.0, but it seems correct
> judging by my C++ books.
>
> Wichert.
>
> #include
> #include
> using namespace std;
> int main(int, char**) {
> auto_ptr api(new int(5));
> list > lapi;
> lapi.push_back(api);
> return 0;
>
>Submitter-Id: net
>Originator:Wichert Akkerman <[EMAIL PROTECTED]>
>Organization: The Debian project
>Confidential: no
>Synopsis: error in auto_ptr implementation
>Severity: serious
>Priority: medium
>Category: libstdc++
>Clas
Package: g++-3.0
Version: 1:3.0-0pre010613
Severity: normal
Tags: sid
The code below does not compile with g++ 3.0, but it seems correct
judging by my C++ books.
Wichert.
#include
#include
using namespace std;
int main(int, char**) {
auto_ptr api(new int(5));
list > lapi;
lapi.push_back(
5 matches
Mail list logo