This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Reorder std::scoped_lock parameters as per P0739R0 DR status
- From: Ville Voutilainen <ville dot voutilainen at gmail dot com>
- To: Jonathan Wakely <jwakely at redhat dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 16 Jul 2017 16:21:10 +0300
- Subject: Re: [PATCH] Reorder std::scoped_lock parameters as per P0739R0 DR status
- Authentication-results: sourceware.org; auth=none
- References: <20170715154842.GA31485@redhat.com>
On 15 July 2017 at 18:48, Jonathan Wakely <jwakely@redhat.com> 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.