Revert 238354 while I figure out what broke in weak_ptr

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@238355 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2015-05-27 20:36:14 +00:00
parent 83f8153b22
commit fc3a3ffc69
2 changed files with 5 additions and 5 deletions

View File

@@ -4040,14 +4040,14 @@ private:
template <class _Yp>
_LIBCPP_INLINE_VISIBILITY
void
__enable_weak_this(const volatile enable_shared_from_this<_Yp>* __e) _NOEXCEPT
__enable_weak_this(const enable_shared_from_this<_Yp>* __e) _NOEXCEPT
{
if (__e)
__e->__weak_this_ = *this;
}
_LIBCPP_INLINE_VISIBILITY
void __enable_weak_this(const volatile void*) _NOEXCEPT {}
void __enable_weak_this(const 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);
}