diff --git a/test/common_functors.hpp b/test/common_functors.hpp index ebfc846..7f7c675 100644 --- a/test/common_functors.hpp +++ b/test/common_functors.hpp @@ -29,7 +29,7 @@ class delete_disposer { typedef typename std::iterator_traits::value_type value_type; BOOST_INTRUSIVE_INVARIANT_ASSERT(( detail::is_same::value )); - delete detail::get_pointer(p); + delete detail::boost_intrusive_get_pointer(p); } }; diff --git a/test/set_test.cpp b/test/set_test.cpp index aa1ca2b..97210d8 100644 --- a/test/set_test.cpp +++ b/test/set_test.cpp @@ -147,6 +147,7 @@ class test_main_template } }; + int main( int, char* [] ) { test_main_template()(); diff --git a/test/smart_ptr.hpp b/test/smart_ptr.hpp index 24ac8bb..c5ccfc5 100644 --- a/test/smart_ptr.hpp +++ b/test/smart_ptr.hpp @@ -303,10 +303,10 @@ inline void swap (smart_ptr &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 -inline T* get_pointer(const smart_ptr & p) +inline T* boost_intrusive_get_pointer(const smart_ptr & p) { return p.get(); } //!Simulation of static_cast between pointers. Never throws.