[PATCH] D31163: Implement Pp0156r2 "Variadic Lock Guard, version 5"

Marshall Clow via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 23 20:44:05 PDT 2017


mclow.lists marked 8 inline comments as done.
mclow.lists added inline comments.


================
Comment at: include/mutex:176
 
+template<class M> unique_lock(unique_lock<M>)
+    -> unique_lock<M>; // C++17
----------------
mclow.lists wrote:
> EricWF wrote:
> > This should be guarded behind a feature test macro. I would suggest adding this to `__config`.
> > 
> > ```
> > #if !defined(__cpp_deduction_guides) || __cpp_deduction_guides < 201611
> > # define _LIBCPP_HAS_NO_DEDUCTION_GUIDES
> > #endif
> > ```
> That sounds right to me.
Actually, this is in the synopsis; so no guard needed.


https://reviews.llvm.org/D31163





More information about the cfe-commits mailing list