[libcxx] r272804 - Fix const default initialization of lock_guard<>

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 15 10:04:40 PDT 2016


Author: ericwf
Date: Wed Jun 15 12:04:40 2016
New Revision: 272804

URL: http://llvm.org/viewvc/llvm-project?rev=272804&view=rev
Log:
Fix const default initialization of lock_guard<>

Modified:
    libcxx/trunk/include/mutex

Modified: libcxx/trunk/include/mutex
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/mutex?rev=272804&r1=272803&r2=272804&view=diff
==============================================================================
--- libcxx/trunk/include/mutex (original)
+++ libcxx/trunk/include/mutex Wed Jun 15 12:04:40 2016
@@ -617,7 +617,7 @@ call_once(once_flag& __flag, const _Call
 template <>
 class _LIBCPP_TYPE_VIS_ONLY lock_guard<> {
 public:
-    explicit lock_guard() = default;
+    explicit lock_guard() {}
     ~lock_guard() = default;
 
     _LIBCPP_INLINE_VISIBILITY




More information about the cfe-commits mailing list