vector new and delete

Mark Mitchell mark at codesourcery.com
Thu Jun 29 01:30:01 UTC 2000


>>>>> "Jim" == Jim Dehnert <dehnert at baalbek.engr.sgi.com> writes:

    >> 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?

    Jim> Done, as issue C-15.

Also on this topic -- shouldn't we make these routines have C linkage?
Is there any reason to give these kind of runtime support routines C++
linkage?

--
Mark Mitchell                   mark at codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com




More information about the cxx-abi-dev mailing list