From patchwork Wed Oct 19 18:33:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 78324 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp392371qge; Wed, 19 Oct 2016 11:34:13 -0700 (PDT) X-Received: by 10.99.245.69 with SMTP id e5mr11252072pgk.92.1476902053490; Wed, 19 Oct 2016 11:34:13 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id h132si38244540pgc.330.2016.10.19.11.34.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Oct 2016 11:34:13 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-439056-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-439056-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-439056-patch=linaro.org@gcc.gnu.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; q=dns; s=default; b=t0h8Gz67lZNa+4G1Y5I7fiwDx3Lc24 9oS9+X+zOQSGVriXqfeM3g372uQs1FDg+bBrNxCB2kKVhPHaR4K1kgMA4YNUmB4h 7xXpYbLrocXShw0uAKNuqb4JfjsWjGd0XTiM8hKJNvkgDR2cXHdurUuw+uSRBfz4 /DIlu6duGhvEk= 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:date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=x3jbIQiO3A3jmGYKqSkmCpTsNKg=; b=kIgx jzosd3KeFCsVdc9wWHi1HFtsdbJIOo3bEgmQBxlDcaLIjP+LbAOf8qgHeoYN9OiI t3XYc9lCPRuxuYUcSrMMLbrVYtrNmNnTgE8mvoQjP8UPTvAAp8FEmER3cvOCLmV6 E6WZvFNWXxZ9J0KK3PXwT5LjzJF+pL3l+0k5C54= Received: (qmail 51021 invoked by alias); 19 Oct 2016 18:33:51 -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 50973 invoked by uid 89); 19 Oct 2016 18:33:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Oct 2016 18:33:47 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 260453F1E4; Wed, 19 Oct 2016 18:33:46 +0000 (UTC) Received: from localhost (ovpn-116-70.ams2.redhat.com [10.36.116.70]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9JIXjBO017729; Wed, 19 Oct 2016 14:33:45 -0400 Date: Wed, 19 Oct 2016 19:33:44 +0100 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Re: [PATCH] Implement P0084R2, Emplace return type, for C++17 Message-ID: <20161019183344.GZ2922@redhat.com> References: <20161017115650.GA6908@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20161017115650.GA6908@redhat.com> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.7.0 (2016-08-17) On 17/10/16 12:56 +0100, Jonathan Wakely wrote: >In C++17 the emplace_front and emplace_back members return a >reference. There isn't a very neat way to implement this, so it's just >lots of conditional compilation. This fixes a silly typo. Committed to trunk. commit 688f5967dd566c56c01c710f2c1b49c56eabe123 Author: Jonathan Wakely Date: Wed Oct 19 19:25:43 2016 +0100 Fix copy&paste error in __gnu_debug::vector * include/debug/vector (__gnu_debug::vector::emplace_back): Fix return type. diff --git a/libstdc++-v3/include/debug/vector b/libstdc++-v3/include/debug/vector index b2d70bd..1b9e4a7 100644 --- a/libstdc++-v3/include/debug/vector +++ b/libstdc++-v3/include/debug/vector @@ -479,7 +479,7 @@ namespace __debug template #if __cplusplus > 201402L - deque<_Tp, _Alloc>::reference + reference #else void #endif