summaryrefslogtreecommitdiff
path: root/boost/ptr_container/ptr_set.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/ptr_container/ptr_set.hpp')
-rw-r--r--boost/ptr_container/ptr_set.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/boost/ptr_container/ptr_set.hpp b/boost/ptr_container/ptr_set.hpp
index 74bfa41210..3e6b7e374d 100644
--- a/boost/ptr_container/ptr_set.hpp
+++ b/boost/ptr_container/ptr_set.hpp
@@ -28,14 +28,17 @@ namespace boost
class Key,
class Compare = std::less<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_set :
- public ptr_set_adapter< Key,
- std::set<void*,void_ptr_indirect_fun<Compare,Key>,Allocator>,
+ public ptr_set_adapter< Key, std::set<
+ typename ptr_container_detail::void_ptr<Key>::type,
+ void_ptr_indirect_fun<Compare,Key>,Allocator>,
CloneAllocator, true >
{
- typedef ptr_set_adapter< Key, std::set<void*,void_ptr_indirect_fun<Compare,Key>,Allocator>,
+ typedef ptr_set_adapter< Key, std::set<
+ typename ptr_container_detail::void_ptr<Key>::type,
+ void_ptr_indirect_fun<Compare,Key>,Allocator>,
CloneAllocator, true >
base_type;