Boost logo

Boost-Commit :

From: pdimov_at_[hidden]
Date: 2007-08-26 16:35:52


Author: pdimov
Date: 2007-08-26 16:35:52 EDT (Sun, 26 Aug 2007)
New Revision: 38977
URL: http://svn.boost.org/trac/boost/changeset/38977

Log:
BOOST_NO_TYPEID support (#1108).
Text files modified:
   trunk/boost/shared_ptr.hpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/shared_ptr.hpp
==============================================================================
--- trunk/boost/shared_ptr.hpp (original)
+++ trunk/boost/shared_ptr.hpp 2007-08-26 16:35:52 EDT (Sun, 26 Aug 2007)
@@ -453,9 +453,9 @@
         return pn < rhs.pn;
     }
 
- void * _internal_get_deleter(std::type_info const & ti) const
+ void * _internal_get_deleter( detail::sp_typeinfo const & ti ) const
     {
- return pn.get_deleter(ti);
+ return pn.get_deleter( ti );
     }
 
 // Tasteless as this may seem, making all members public allows member templates
@@ -594,7 +594,7 @@
 
 template<class D, class T> D * get_deleter(shared_ptr<T> const & p)
 {
- void const * q = p._internal_get_deleter(typeid(D));
+ void const * q = p._internal_get_deleter(BOOST_SP_TYPEID(D));
     return const_cast<D *>(static_cast<D const *>(q));
 }
 
@@ -602,7 +602,7 @@
 
 template<class D, class T> D * get_deleter(shared_ptr<T> const & p)
 {
- return static_cast<D *>(p._internal_get_deleter(typeid(D)));
+ return static_cast<D *>(p._internal_get_deleter(BOOST_SP_TYPEID(D)));
 }
 
 #endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk