Matching delete operator overload as a template function

Jonathan Wakely jwakely.gcc@gmail.com
Sat Nov 1 16:09:00 GMT 2008


2008/11/1 Jonathan Wakely:
> 2008/10/28 S. Tang:
>> Hello there,
>>
>> From what I understand, if one uses placement new with a parameter to initialize a class, and if that class' constructor throws an exception, then a matching delete operator is called to release the memory.
>>
>> This does not seem to work if the overloaded delete operator is a template function.

this is http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34158

Jonathan



More information about the Gcc mailing list