mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-02 22:14:35 +02:00
Interprocess:
[@https://svn.boost.org/trac/boost/ticket/3439 #3439], [@https://svn.boost.org/trac/boost/ticket/3846 #3846], [@https://svn.boost.org/trac/boost/ticket/3947 #3947], [@https://svn.boost.org/trac/boost/ticket/3985 #3985]. Intrusive: [@https://svn.boost.org/trac/boost/ticket/3668 #3668], [@https://svn.boost.org/trac/boost/ticket/3339 #3688], [@https://svn.boost.org/trac/boost/ticket/3698 #3698], [@https://svn.boost.org/trac/boost/ticket/3706 #3706], [@https://svn.boost.org/trac/boost/ticket/3721 #3721]. [@https://svn.boost.org/trac/boost/ticket/3729 #3729], [@https://svn.boost.org/trac/boost/ticket/3746 #3746], [@https://svn.boost.org/trac/boost/ticket/3781 #3781], [@https://svn.boost.org/trac/boost/ticket/3829 #3829], [@https://svn.boost.org/trac/boost/ticket/3840 #3840], [@https://svn.boost.org/trac/boost/ticket/3339 #3339], [@https://svn.boost.org/trac/boost/ticket/3419 #3419], [@https://svn.boost.org/trac/boost/ticket/3431 #3431], [SVN r60515]
This commit is contained in:
@@ -29,7 +29,7 @@ class delete_disposer
|
|||||||
{
|
{
|
||||||
typedef typename std::iterator_traits<Pointer>::value_type value_type;
|
typedef typename std::iterator_traits<Pointer>::value_type value_type;
|
||||||
BOOST_INTRUSIVE_INVARIANT_ASSERT(( detail::is_same<T, value_type>::value ));
|
BOOST_INTRUSIVE_INVARIANT_ASSERT(( detail::is_same<T, value_type>::value ));
|
||||||
delete detail::get_pointer(p);
|
delete detail::boost_intrusive_get_pointer(p);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -147,6 +147,7 @@ class test_main_template<VoidPointer, false>
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
int main( int, char* [] )
|
int main( int, char* [] )
|
||||||
{
|
{
|
||||||
test_main_template<void*, false>()();
|
test_main_template<void*, false>()();
|
||||||
|
@@ -303,10 +303,10 @@ inline void swap (smart_ptr<T> &pt,
|
|||||||
pt2 = ptr;
|
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.
|
//!Never throws.
|
||||||
template<class T>
|
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(); }
|
{ return p.get(); }
|
||||||
|
|
||||||
//!Simulation of static_cast between pointers. Never throws.
|
//!Simulation of static_cast between pointers. Never throws.
|
||||||
|
Reference in New Issue
Block a user