From 762657693d76b4e142c192ab778de2f496fb68fc Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Fri, 18 May 2012 13:06:21 +0000 Subject: [PATCH] Protect __shared_weak_count::__get_deleter declaration with _LIBCPP_NO_RTTI. Fixes http://llvm.org/bugs/show_bug.cgi?id=12867 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@157049 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/memory | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/memory b/include/memory index e30a6fd7..8456a942 100644 --- a/include/memory +++ b/include/memory @@ -3603,7 +3603,9 @@ public: long use_count() const _NOEXCEPT {return __shared_count::use_count();} __shared_weak_count* lock() _NOEXCEPT; +#ifndef _LIBCPP_NO_RTTI virtual const void* __get_deleter(const type_info&) const _NOEXCEPT; +#endif private: virtual void __on_zero_shared_weak() _NOEXCEPT = 0; };