Re: Always avoid "new"

From: Andrew Koenig (ark_at_acm.org)
Date: 05/02/04


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.