[llvm-dev] [RFC 1/2] pm: change deque typedef
Tomasz Kapela via llvm-dev
llvm-dev at lists.llvm.org
Mon Jan 16 06:25:58 PST 2017
Necessary to make the deque understand fancy pointers.
Signed-off-by: Tomasz Kapela <tomasz.kapela at intel.com>
---
include/deque | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/deque b/include/deque
index 0454162..431a50d 100644
--- a/include/deque
+++ b/include/deque
@@ -935,8 +935,7 @@ protected:
typedef typename __rebind_alloc_helper<__alloc_traits, pointer>::type __pointer_allocator;
typedef allocator_traits<__pointer_allocator> __map_traits;
typedef typename __map_traits::pointer __map_pointer;
- typedef typename __rebind_alloc_helper<__alloc_traits, const_pointer>::type __const_pointer_allocator;
- typedef typename allocator_traits<__const_pointer_allocator>::const_pointer __map_const_pointer;
+ typedef typename allocator_traits<__pointer_allocator>::const_pointer __map_const_pointer;
typedef __split_buffer<pointer, __pointer_allocator> __map;
typedef __deque_iterator<value_type, pointer, reference, __map_pointer,
--
2.9.3
More information about the llvm-dev
mailing list