Fix PR#23647 - make_shared<volatile bool> - second try

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@238370 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow 2015-05-27 22:44:47 +00:00
parent fc3a3ffc69
commit 60784f62de
2 changed files with 4 additions and 4 deletions

View File

@ -4047,7 +4047,7 @@ private:
} }
_LIBCPP_INLINE_VISIBILITY _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 shared_ptr;
template <class _Up> friend class _LIBCPP_TYPE_VIS_ONLY weak_ptr; template <class _Up> friend class _LIBCPP_TYPE_VIS_ONLY weak_ptr;

View File

@ -55,7 +55,7 @@ void test(const T &t0)
int main() int main()
{ {
// test<bool>(true); test<bool>(true);
// test<int>(3); test<int>(3);
// test<double>(5.0); test<double>(5.0);
} }