Fix PR#23647 - make_shared<volatile bool> - second try
authorMarshall Clow <mclow.lists@gmail.com>
Wed, 27 May 2015 22:44:47 +0000 (22:44 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Wed, 27 May 2015 22:44:47 +0000 (22:44 +0000)
llvm-svn: 238370

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

index 4af72c3..a0e7a8b 100644 (file)
@@ -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;