vector new and delete

Jim Dehnert dehnert at baalbek.engr.sgi.com
Thu Jun 29 01:17:34 UTC 2000


> From: Mark Mitchell <mark at codesourcery.com>
> 
>   __cxa_vec_new and __cxa_vec_delete would be a lot more useful if
> they accepted pointers to the allocation and deallocation functions as
> well.  As it is, they are hard-wired to use the `::operator new[]' and
> `::operator delete[]'.  Since the whole purpose of these functions is
> to provide compilers a convenient way to manage construction and
> destruction, I think we should either add allocation/deallocation
> routine pointers to these functions, or add additional entry points.
> This additional flexibility would also be useful for C++-compatible
> allocations from other languages, etc.
> 
>   Jim, would you add this to the open issues list?

Done, as issue C-15.

On looking at the current routines, it strikes me that, since they
only do construction and destruction, it makes no sense for the
__cxx_vec_ctor to have a NULL constructor, nor for __cxx_vec_dtor to
have a NULL destructor, as suggested by the comments.  Am I missing
something?

Jim

-	    Jim Dehnert		dehnert at sgi.com
				(650)933-4272




More information about the cxx-abi-dev mailing list