This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: std::packaged_task trunk problem


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 { }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]