Ion Gaztañaga
2010-03-12 13:22:13 +00:00
parent 90d4ec5289
commit d031cebdb6
3 changed files with 4 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ class delete_disposer
{
typedef typename std::iterator_traits<Pointer>::value_type value_type;
BOOST_INTRUSIVE_INVARIANT_ASSERT(( detail::is_same<T, value_type>::value ));
delete detail::get_pointer(p);
delete detail::boost_intrusive_get_pointer(p);
}
};

View File

@@ -147,6 +147,7 @@ class test_main_template<VoidPointer, false>
}
};
int main( int, char* [] )
{
test_main_template<void*, false>()();

View File

@@ -303,10 +303,10 @@ inline void swap (smart_ptr<T> &pt,
pt2 = ptr;
}
//!detail::get_pointer() enables boost::mem_fn to recognize smart_ptr.
//!detail::boost_intrusive_get_pointer() enables boost::mem_fn to recognize smart_ptr.
//!Never throws.
template<class T>
inline T* get_pointer(const smart_ptr<T> & p)
inline T* boost_intrusive_get_pointer(const smart_ptr<T> & p)
{ return p.get(); }
//!Simulation of static_cast between pointers. Never throws.