[cfe-commits] [libcxx] r157049 - /libcxx/trunk/include/memory
Howard Hinnant
hhinnant at apple.com
Fri May 18 06:06:21 PDT 2012
Author: hhinnant
Date: Fri May 18 08:06:21 2012
New Revision: 157049
URL: http://llvm.org/viewvc/llvm-project?rev=157049&view=rev
Log:
Protect __shared_weak_count::__get_deleter declaration with _LIBCPP_NO_RTTI. Fixes http://llvm.org/bugs/show_bug.cgi?id=12867
Modified:
libcxx/trunk/include/memory
Modified: libcxx/trunk/include/memory
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/memory?rev=157049&r1=157048&r2=157049&view=diff
==============================================================================
--- libcxx/trunk/include/memory (original)
+++ libcxx/trunk/include/memory Fri May 18 08:06:21 2012
@@ -3603,7 +3603,9 @@
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;
};
More information about the cfe-commits
mailing list