From 362d815b81e2b4b66c33b99203d821b8928607e1 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Tue, 13 Mar 2012 14:09:15 +0000 Subject: Import new version of libc++ into vendor branch. Approved by: dim (mentor) --- include/deque | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'include/deque') diff --git a/include/deque b/include/deque index ab9ba58b0286..e65acfc806d4 100644 --- a/include/deque +++ b/include/deque @@ -162,6 +162,8 @@ template #include #include +#include <__undef_min_max> + _LIBCPP_BEGIN_NAMESPACE_STD template class __deque_base; @@ -278,10 +280,10 @@ public: _LIBCPP_INLINE_VISIBILITY __deque_iterator() _NOEXCEPT {} - template + template _LIBCPP_INLINE_VISIBILITY - __deque_iterator(const __deque_iterator& __it, - typename enable_if::value>::type* = 0) _NOEXCEPT + __deque_iterator(const __deque_iterator& __it, + typename enable_if::value>::type* = 0) _NOEXCEPT : __m_iter_(__it.__m_iter_), __ptr_(__it.__ptr_) {} _LIBCPP_INLINE_VISIBILITY reference operator*() const {return *__ptr_;} @@ -407,9 +409,9 @@ private: _LIBCPP_INLINE_VISIBILITY __deque_iterator(__map_iterator __m, pointer __p) _NOEXCEPT : __m_iter_(__m), __ptr_(__p) {} - template friend class __deque_base; - template friend class _LIBCPP_VISIBLE deque; - template + template friend class __deque_base; + template friend class _LIBCPP_VISIBLE deque; + template friend class _LIBCPP_VISIBLE __deque_iterator; template ::deque(deque&& __c, const allocator_type& __a) { if (__a != __c.__alloc()) { - typedef move_iterator _I; - assign(_I(__c.begin()), _I(__c.end())); + typedef move_iterator _Ip; + assign(_Ip(__c.begin()), _Ip(__c.end())); } } @@ -1531,8 +1533,8 @@ deque<_Tp, _Allocator>::__move_assign(deque& __c, false_type) { if (__base::__alloc() != __c.__alloc()) { - typedef move_iterator _I; - assign(_I(__c.begin()), _I(__c.end())); + typedef move_iterator _Ip; + assign(_Ip(__c.begin()), _Ip(__c.end())); } else __move_assign(__c, true_type()); -- cgit v1.2.3