diff --git a/test/bptr_value.hpp b/test/bptr_value.hpp index a2995d3..d4313c5 100644 --- a/test/bptr_value.hpp +++ b/test/bptr_value.hpp @@ -18,6 +18,8 @@ #include #include "bounded_pointer.hpp" #include "common_functors.hpp" +#include "int_holder.hpp" +#include namespace boost { diff --git a/test/int_holder.hpp b/test/int_holder.hpp index cff862e..d1209cc 100644 --- a/test/int_holder.hpp +++ b/test/int_holder.hpp @@ -12,6 +12,8 @@ #ifndef BOOST_INTRUSIVE_DETAIL_INT_HOLDER_HPP #define BOOST_INTRUSIVE_DETAIL_INT_HOLDER_HPP +#include + namespace boost{ namespace intrusive{ @@ -96,7 +98,7 @@ struct int_holder_key_of_value { typedef int_holder type; - type operator()(const ValueType &tv) + type operator()(const ValueType &tv) const { return tv.get_int_holder(); } };