summaryrefslogtreecommitdiff
path: root/boost/ptr_container/ptr_unordered_set.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/ptr_container/ptr_unordered_set.hpp')
-rw-r--r--boost/ptr_container/ptr_unordered_set.hpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/boost/ptr_container/ptr_unordered_set.hpp b/boost/ptr_container/ptr_unordered_set.hpp
index 49ec464ebb..90f1c60e23 100644
--- a/boost/ptr_container/ptr_unordered_set.hpp
+++ b/boost/ptr_container/ptr_unordered_set.hpp
@@ -29,16 +29,18 @@ namespace boost
class Hash = boost::hash<Key>,
class Pred = std::equal_to<Key>,
class CloneAllocator = heap_clone_allocator,
- class Allocator = std::allocator<void*>
+ class Allocator = std::allocator< typename ptr_container_detail::void_ptr<Key>::type >
>
class ptr_unordered_set :
- public ptr_set_adapter< Key,
- boost::unordered_set<void*,void_ptr_indirect_fun<Hash,Key>,
- void_ptr_indirect_fun<Pred,Key>,Allocator>,
+ public ptr_set_adapter< Key, boost::unordered_set<
+ typename ptr_container_detail::void_ptr<Key>::type,
+ void_ptr_indirect_fun<Hash,Key>,
+ void_ptr_indirect_fun<Pred,Key>,Allocator>,
CloneAllocator, false >
{
- typedef ptr_set_adapter< Key,
- boost::unordered_set<void*,void_ptr_indirect_fun<Hash,Key>,
+ typedef ptr_set_adapter< Key, boost::unordered_set<
+ typename ptr_container_detail::void_ptr<Key>::type,
+ void_ptr_indirect_fun<Hash,Key>,
void_ptr_indirect_fun<Pred,Key>,Allocator>,
CloneAllocator, false >
base_type;