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

llvm-svn: 238370
This commit is contained in:
Marshall Clow 2015-05-27 22:44:47 +00:00
parent 88a8fc5448
commit a7fb9a041d
2 changed files with 4 additions and 4 deletions

View 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;

View File

@ -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);
}