boost_smart_ptr.patch 951 B

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