/////////////////////////////////////////////////////////////////////////////
//
-// (C) Copyright Ion Gaztanaga 2006-2012
+// (C) Copyright Ion Gaztanaga 2006-2013
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
#ifndef BOOST_INTRUSIVE_TEST_COMMON_FUNCTORS_HPP
#define BOOST_INTRUSIVE_TEST_COMMON_FUNCTORS_HPP
-#include<boost/intrusive/detail/utilities.hpp>
+#include<boost/intrusive/detail/iiterator.hpp>
#include<boost/intrusive/detail/mpl.hpp>
+#include<boost/static_assert.hpp>
namespace boost {
namespace intrusive {
template <class Pointer>
void operator()(Pointer p)
{
- typedef typename std::iterator_traits<Pointer>::value_type value_type;
- BOOST_INTRUSIVE_INVARIANT_ASSERT(( detail::is_same<T, value_type>::value ));
+ typedef typename boost::intrusive::iterator_traits<Pointer>::value_type value_type;
+ BOOST_STATIC_ASSERT(( detail::is_same<T, value_type>::value ));
delete boost::intrusive::detail::to_raw_pointer(p);
}
};
{ return new T(); }
};
+class empty_disposer
+{
+ public:
+ template<class T>
+ void operator()(const T &)
+ {}
+};
+
} //namespace test {
} //namespace intrusive {
} //namespace boost {