std::packaged_task trunk problem

Lars Gullik Bjønnes larsbj@gullik.org
Mon Nov 7 10:47:00 GMT 2011


Jonathan Wakely <jwakely.gcc@gmail.com> writes:

| On 7 November 2011 10:08, Lars Gullik Bjønnes wrote:
>>
>> Making the destructor noexcept does not even compile.
>
| Oops, of course, sorry - it can't be defaulted because the default
| definition would not be noexcept.  This works:
>
|         ~PretendToBeCopyable() noexcept { }

Yes it compiles. The copy constructor is still run, but if having that
throw I still get into std::terminate.

-- 
   Lgb



More information about the Gcc-help mailing list