From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69994 invoked by alias); 16 Jul 2017 13:21:15 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 69970 invoked by uid 89); 16 Jul 2017 13:21:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=aye, our X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-ua0-f181.google.com Received: from mail-ua0-f181.google.com (HELO mail-ua0-f181.google.com) (209.85.217.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 16 Jul 2017 13:21:13 +0000 Received: by mail-ua0-f181.google.com with SMTP id 35so25442640uax.3; Sun, 16 Jul 2017 06:21:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Iwf2M465MziFYRaUth1RGaukV3DZwgMLkf18Mfhoc94=; b=MwdXTnZVC4fBm3yrw0n6O2Kp2jdEP9U6V8zHJB5p3R8Ebfbc/cPtf6dVmFp2UhHHxY WEemDEcaAbolke0ss34r8yWGAah0wwWENYpf8E3Mwmo+Fo0lbZGomlL/P6cd8trZor0S ovk9dlfAgDYyq2VXemrFumGVX3LnaNZwSB42+1wk5vyW10Y2gYvTVefvFWCGKjd97oFp oFKqYAN6EmsH6uGih+WYaCuI3EI77LtNgQuNY0aa4Kb6hhc5qOYhJC4UNyzQp7BLGY7y BEIQ6H0YN9q88mFTpFtzocwhjmvG6cEOVETwbVwQNsgG1Z1zcKxOITSOUuAmHW+3BLPK nlZA== X-Gm-Message-State: AIVw112noJJttPPN3celgLqxpYcRiVp+3rDfETpuaQabfmg3oV6vRbeb zWc3aTWzkvjWGsEQwh8SDwwC6R2XIA== X-Received: by 10.176.82.47 with SMTP id i44mr10399430uaa.57.1500211271304; Sun, 16 Jul 2017 06:21:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.149.157 with HTTP; Sun, 16 Jul 2017 06:21:10 -0700 (PDT) In-Reply-To: <20170715154842.GA31485@redhat.com> References: <20170715154842.GA31485@redhat.com> From: Ville Voutilainen Date: Sun, 16 Jul 2017 13:21:00 -0000 Message-ID: Subject: Re: [PATCH] Reorder std::scoped_lock parameters as per P0739R0 DR status To: Jonathan Wakely Cc: "libstdc++" , "gcc-patches@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2017-07/txt/msg00907.txt.bz2 On 15 July 2017 at 18:48, Jonathan Wakely wrote: > WG21 just approved this change as a DR for C++17, so that class > template argument deduction works when using std::adopt_lock with a > std::scoped_lock. > > * include/std/mutex (scoped_lock): Reorder std::adopt_lock_t > parameter > as per P0739R0. > * testsuite/30_threads/scoped_lock/cons/1.cc: Reorder arguments. > * testsuite/30_threads/scoped_lock/cons/deduction.cc: Test deduction > with std::adopt_lock_t. > * testsuite/30_threads/scoped_lock/requirements/typedefs.cc: Check > feature-test macro. > > Tested powerpc64le-linux, committed to trunk. > > I think we should also make this change and the r250213 one to > std::variant (which is in the same paper) on gcc-7-branch. Aye - it doesn't seem sensible to keep the old semantics, our C++17-support is fairly fresh.