blob: 5120199ceb2a43f4a69dc2559648d66ca60136b3 [file] [log] [blame]
Brian Silverman87d3c952018-08-05 00:08:45 -07001From 03194eefcb9c3314054855d28bd9a90d3188768d Mon Sep 17 00:00:00 2001
2From: Antony Polukhin <antoshkka@gmail.com>
3Date: Thu, 20 Feb 2014 18:50:10 +0400
4Subject: [PATCH] Use TypeIndex features in Boost.SharedPtr to avoid type_info
5 related bugs
6
7---
8 include/boost/smart_ptr/detail/sp_counted_impl.hpp | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/include/boost/smart_ptr/detail/sp_counted_impl.hpp b/include/boost/smart_ptr/detail/sp_counted_impl.hpp
12index a7b43ae..5955036 100644
13--- a/include/boost/smart_ptr/detail/sp_counted_impl.hpp
14+++ b/include/boost/smart_ptr/detail/sp_counted_impl.hpp
15@@ -155,7 +155,7 @@ public:
16
17 virtual void * get_deleter( detail::sp_typeinfo const & ti )
18 {
19- return ti == BOOST_SP_TYPEID(D)? &reinterpret_cast<char&>( del ): 0;
20+ return ti == boost::typeind::type_id<D>()? &reinterpret_cast<char&>( del ): 0;
21 }
22
23 virtual void * get_untyped_deleter()
24--
251.8.5.3
26