summaryrefslogtreecommitdiff
path: root/boost/interprocess/indexes/iunordered_set_index.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/interprocess/indexes/iunordered_set_index.hpp')
-rw-r--r--boost/interprocess/indexes/iunordered_set_index.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/boost/interprocess/indexes/iunordered_set_index.hpp b/boost/interprocess/indexes/iunordered_set_index.hpp
index 6cd1452f68..702ef9189f 100644
--- a/boost/interprocess/indexes/iunordered_set_index.hpp
+++ b/boost/interprocess/indexes/iunordered_set_index.hpp
@@ -89,8 +89,10 @@ struct iunordered_set_index_aux
};
struct hash_function
- : std::unary_function<value_type, std::size_t>
{
+ typedef value_type argument_type;
+ typedef std::size_t result_type;
+
std::size_t operator()(const value_type &val) const
{
const char_type *beg = ipcdetail::to_raw_pointer(val.name()),