From: larsbj@gullik.org (Lars Gullik Bjønnes)
To: gcc-help@gcc.gnu.org
Subject: Re: std::packaged_task trunk problem
Date: Mon, 07 Nov 2011 10:47:00 -0000 [thread overview]
Message-ID: <m37h3cfbw5.fsf@black.gullik.net> (raw)
In-Reply-To: <CAH6eHdQrYaXAVzg841EYLUkE3HF1OdRTJAvWQQGH-evh1dTqMA@mail.gmail.com>
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
next prev parent reply other threads:[~2011-11-07 10:47 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-01 11:00 Lars Gullik Bjønnes
2011-11-01 15:03 ` Jonathan Wakely
2011-11-01 15:08 ` Jonathan Wakely
2011-11-01 15:13 ` Lars Gullik Bjønnes
2011-11-02 0:56 ` Jonathan Wakely
2011-11-02 2:01 ` Lars Gullik Bjønnes
2011-11-02 9:06 ` Jonathan Wakely
2011-11-02 10:03 ` Jonathan Wakely
2011-11-02 11:22 ` Jonathan Wakely
2011-11-02 12:01 ` Jonathan Wakely
2011-11-03 13:13 ` Lars Gullik Bjønnes
2011-11-03 16:18 ` Jonathan Wakely
2011-11-03 16:18 ` Jonathan Wakely
2011-11-07 9:26 ` Lars Gullik Bjønnes
2011-11-07 9:51 ` Jonathan Wakely
2011-11-07 9:53 ` Jonathan Wakely
2011-11-07 10:09 ` Lars Gullik Bjønnes
2011-11-07 10:37 ` Jonathan Wakely
2011-11-07 10:47 ` Lars Gullik Bjønnes [this message]
2011-11-07 10:48 ` Jonathan Wakely
2011-11-07 22:43 ` Lars Gullik Bjønnes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m37h3cfbw5.fsf@black.gullik.net \
--to=larsbj@gullik.org \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).