From patchwork Fri Nov 30 23:05:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Krause X-Patchwork-Id: 1006247 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-491416-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="iLFELRwk"; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MHVQfAHN"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43693Y4NQTz9rxp for ; Sat, 1 Dec 2018 10:05:45 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; q=dns; s=default; b=gsQOWQF/LGu2 1B8Bv1cBQWs2D1L5VKe0nFrokGLCyrGprTDMWwfkkrKu018VuHp3ZyAaqirq5752 8UfkNkBHXs2GlykQ26Pb+1rR8wwQgW2mkcBMqDTl9Tz9Je9wwYKBxBSxnojQo57n jV+VQJ+5C5ksT4VHo+wsPvF5q8/kjlM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; s=default; bh=mP3fL5vLzTlsCMqrIe og/XvdPis=; b=iLFELRwk9C355X0tfhnJzy1e86Dl5og4/5iLstWM0hugNwx14E owfrxLBQTWJi8APbSsbVfzumKxXTNbISwZkjvh/VmYn9OzZYDBP+iUiOfsBUODAF TQWoBu7lErb4sJ9r/ASuEaf6BzRn5pP/+JOjICFIbaQpqyCYDNrNcFPvY= Received: (qmail 15906 invoked by alias); 30 Nov 2018 23:05:38 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 15883 invoked by uid 89); 30 Nov 2018 23:05:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=meet X-HELO: mail-io1-f65.google.com Received: from mail-io1-f65.google.com (HELO mail-io1-f65.google.com) (209.85.166.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 30 Nov 2018 23:05:36 +0000 Received: by mail-io1-f65.google.com with SMTP id f10so64206iop.10; Fri, 30 Nov 2018 15:05:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=x09ZcdiPQ4CIRhg60NJAkSuudh8tj33NcjsJzkL6+6k=; b=MHVQfAHNQWDOmSmYpCSRhp1uI0QSABRKH7sxJH81V0zEl1jWN7b7qGASNE14LEyLeA ojgrtqGd9q0+G5IHQe6DdhQfvpo4G8ITq8Sy7F0mbv+03Rfn0bdeIOG6qq9gIrSkaSYa 6v6UsQW7GiRGzLYOoKpyHURgv1/GlD6pFRobt4szyFu7KvpIOnfCFr5WsEs4fkZDrfCN 4lS83F7Xt6qyT/B245jKPm9ox+T3ouqxc8mJqZqytMcJf89MzZ2kbGFZwrKhE6tYPEL2 0Vc7jSLsUCEZmE0o/Sc55wV7tebtxo3TMJ0gs7BeHStHGdBYb4K2d6VG/dMbI7JrSrwC yzmg== Received: from nick-System-Product-Name.hitronhub.home (173-230-163-230.cable.teksavvy.com. [173.230.163.230]) by smtp.googlemail.com with ESMTPSA id j129sm261366itb.41.2018.11.30.15.05.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Nov 2018 15:05:33 -0800 (PST) From: Nicholas Krause To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org Subject: [PATCH] Add missing noexpect causes in tuple for move functions Date: Fri, 30 Nov 2018 18:05:29 -0500 Message-Id: <20181130230529.1499-1-xerofoify@gmail.com> X-IsSubscribed: yes This adds the remainging noexcept causes required for this cause to meet the spec as dicussed last year and documented here: http://cplusplus.github.io/LWG/lwg-active.html#2899. Signed-off-by: Nicholas Krause --- libstdc++-v3/include/std/tuple | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libstdc++-v3/include/std/tuple b/libstdc++-v3/include/std/tuple index 56b97c25eed..d17512a1b7e 100644 --- a/libstdc++-v3/include/std/tuple +++ b/libstdc++-v3/include/std/tuple @@ -214,6 +214,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION enable_if::type> explicit constexpr _Tuple_impl(_UHead&& __head, _UTail&&... __tail) + noexcept(__and_, + is_nothrow_move_constructible<_Inherited>>::value) : _Inherited(std::forward<_UTail>(__tail)...), _Base(std::forward<_UHead>(__head)) { } @@ -237,6 +239,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template constexpr _Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) + noexcept(__and_, + is_nothrow_move_constructible<_Inherited>>::value) : _Inherited(std::move (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), _Base(std::forward<_UHead>