[libcxx] r238370 - Fix PR#23647 - make_shared<volatile bool> - second try

Marshall Clow mclow.lists at gmail.com
Wed May 27 15:44:47 PDT 2015


Author: marshall
Date: Wed May 27 17:44:47 2015
New Revision: 238370

URL: http://llvm.org/viewvc/llvm-project?rev=238370&view=rev
Log:
Fix PR#23647 - make_shared<volatile bool> - second try

Modified:
    libcxx/trunk/include/memory
    libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.volatile.pass.cpp

Modified: libcxx/trunk/include/memory
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/memory?rev=238370&r1=238369&r2=238370&view=diff
==============================================================================
--- libcxx/trunk/include/memory (original)
+++ libcxx/trunk/include/memory Wed May 27 17:44:47 2015
@@ -4047,7 +4047,7 @@ private:
         }
 
     _LIBCPP_INLINE_VISIBILITY
-    void __enable_weak_this(const void*) _NOEXCEPT {}
+    void __enable_weak_this(const volatile void*) _NOEXCEPT {}
 
     template <class _Up> friend class _LIBCPP_TYPE_VIS_ONLY shared_ptr;
     template <class _Up> friend class _LIBCPP_TYPE_VIS_ONLY weak_ptr;

Modified: libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.volatile.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.volatile.pass.cpp?rev=238370&r1=238369&r2=238370&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.volatile.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.volatile.pass.cpp Wed May 27 17:44:47 2015
@@ -55,7 +55,7 @@ void test(const T &t0)
 
 int main()
 {
-//     test<bool>(true);
-//     test<int>(3);
-//     test<double>(5.0);
+    test<bool>(true);
+    test<int>(3);
+    test<double>(5.0);
 }





More information about the cfe-commits mailing list