Hi,

Now that we have transitioned to C++, do we still need to use
placebo like XNEW and XNEWVEC in GCC source code proper?
(I am not talking about uses in liberty.)

Note that XNEW in particular does not work for types with
non-default constructors.

We introduced these macros so that they take care of casts
that were required for going from void* to T*.  A new-expression
automatically gives a typed pointer.

-- Gaby

Reply via email to