Re: Always avoid "new"
From: Andrew Koenig (ark_at_acm.org)
Date: 05/02/04
- Next message: Bob: "Re: [OT] Microsoft C/C++ Optimizing Compiler Version 7.00"
- Previous message: John Harrison: "Re: [OT] Microsoft C/C++ Optimizing Compiler Version 7.00"
- In reply to: jeffc: "Re: Always avoid "new""
- Next in thread: jeffc: "Re: Always avoid "new""
- Reply: jeffc: "Re: Always avoid "new""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 02 May 2004 14:38:57 GMT
"jeffc" <nobody@nowhere.com> wrote in message
news:4092c3b0_1@news1.prserv.net...
> > Use a vector.
> But of course, if *you* were the one having to implement the vector, you'd
> have to use new.
Not really; I'd use std::allocator instead, because it gives me
finer-grained control over construction and destruction than new does.
- Next message: Bob: "Re: [OT] Microsoft C/C++ Optimizing Compiler Version 7.00"
- Previous message: John Harrison: "Re: [OT] Microsoft C/C++ Optimizing Compiler Version 7.00"
- In reply to: jeffc: "Re: Always avoid "new""
- Next in thread: jeffc: "Re: Always avoid "new""
- Reply: jeffc: "Re: Always avoid "new""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|