[PATCHv2] do not throw in std::make_exception_ptr

Ryan Burn rnickb731@gmail.com
Fri Oct 21 03:55:00 GMT 2016


Are exception classes required to support emplace new construction
like that? With this change, Intel's TBB library no longer compiles
because its exception class declares it's own new operator (see
https://github.com/wjakob/tbb/blob/master/include/tbb/tbb_exception.h):


class tbb_exception : public std::exception
{
    /** No operator new is provided because the TBB usage model assumes dynamic
         creation of the TBB exception objects only by means of applying move()
         operation on an exception thrown out of TBB scheduler. **/
    void* operator new ( size_t );
....


On Mon, Aug 22, 2016 at 1:29 PM, Jonathan Wakely <jwakely@redhat.com> wrote:
> On 21/08/16 15:20 +0300, Gleb Natapov wrote:
>>
>> Jonathan,
>>
>> Is this version OK with you?
>
>
> I've committed the attached version, which just adds some whitespace
> and fixes the testsuite_abi.cc test.
>
> Thanks very much for the improvement to the code.
>



More information about the Gcc-patches mailing list