From: Sol Foster <colomon@ralf.org>
To: egcs@cygnus.com
Subject: Re: signal 11 generating problem, was: Further observations regarding alloca on i586-pc-linux-gnu
Date: Wed, 26 Aug 1998 05:20:00 -0000 [thread overview]
Message-ID: <199808261220.IAA07971@maniac.deathstar.org> (raw)
Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de> wrote:
>
> > Yup, it's syntactically valid C++, but it is wrong because auto_ptr
> > will delete the pointer to the array as if it were a pointer to a
> > single object. You should write auto_ptr_array instead.
>
> Is auto_ptr_array a standard template? If so, where is it defined?
It is not in the standard, but it is widely recognized. It's easy to make
your own. Grab the auto_ptr source. Search and replace "auto_ptr" with
"auto_ptr_array". Then find the deletes and change each to delete [].
For bonus points, you can take an extra minute and add an operator [] to
make it look more like a C-style array.
--
Sol Foster: colomon@ralf.org
This may sting a little, just at first, but don't worry, that'll go away
once the searing pain kicks in.
-Ethan
next reply other threads:[~1998-08-26 5:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-26 5:20 Sol Foster [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-08-21 16:30 Alexandre Oliva
1998-08-22 11:00 ` Carlo Wood
1998-08-23 4:36 ` Richard Henderson
1998-08-24 10:48 ` Joerg Pommnitz
1998-08-25 12:45 ` Martin von Loewis
1998-08-25 19:31 ` Joerg Pommnitz
1998-08-25 19:31 ` Martin von Loewis
1998-08-25 23:05 ` signal 11 generating problem, was: " Joerg Pommnitz
1998-08-25 19:31 ` Alexandre Oliva
1998-08-25 19:31 ` Joerg Pommnitz
1998-08-25 23:05 ` Martin von Loewis
1998-08-26 8:25 ` Joe Buck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199808261220.IAA07971@maniac.deathstar.org \
--to=colomon@ralf.org \
--cc=egcs@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).