From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17558 invoked by alias); 2 Nov 2011 10:03:19 -0000 Received: (qmail 17517 invoked by uid 22791); 2 Nov 2011 10:03:17 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-ww0-f51.google.com (HELO mail-ww0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Nov 2011 10:03:03 +0000 Received: by wwf27 with SMTP id 27so3756418wwf.8 for ; Wed, 02 Nov 2011 03:03:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.229.30 with SMTP id g30mr17927weq.51.1320228182106; Wed, 02 Nov 2011 03:03:02 -0700 (PDT) Received: by 10.216.90.19 with HTTP; Wed, 2 Nov 2011 03:03:02 -0700 (PDT) In-Reply-To: References: Date: Wed, 02 Nov 2011 10:03:00 -0000 Message-ID: Subject: Re: std::packaged_task trunk problem From: Jonathan Wakely To: =?ISO-8859-1?Q?Lars_Gullik_Bj=F8nnes?= Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg00015.txt.bz2 On 2 November 2011 09:06, Jonathan Wakely wrote: > On 2 November 2011 02:01, Lars Gullik Bj=F8nnes wrote: >> >> Now of to next problem on how to store a std::packaged_task in a contain= er. > > That should work because packaged_task is nothrow move constructible, > but it looks as though there may be a problem with the > _GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR code ... I'd better look into > that too. > is_nothrow_move_constructible>::value is false, because packaged_task's destructor is not noexcept. I'm not sure yet if that's correct or not...