Skip to content

Commit 651dc29

Browse files
committed
headers: Fix incorrect types in string member typedefs
1 parent f43e422 commit 651dc29

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

headers/string

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ public:
9393
#if CPPREFERENCE_SIMPLIFY_TYPEDEFS
9494
typedef size_t size_type;
9595
typedef ptrdiff_t difference_type;
96-
typedef T& reference;
97-
typedef const T& const_reference;
98-
typedef T* pointer;
99-
typedef const T* const_pointer;
96+
typedef CharT& reference;
97+
typedef const CharT& const_reference;
98+
typedef CharT* pointer;
99+
typedef const CharT* const_pointer;
100100
#elif CPPREFERENCE_STDVER <2011
101101
typedef typename Allocator::size_type size_type;
102102
typedef typename Allocator::difference_type difference_type;
@@ -112,8 +112,8 @@ public:
112112
typedef typename std::allocator_traits<Allocator>::pointer pointer;
113113
typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
114114
#endif
115-
typedef T* iterator; // actual type is unspecified
116-
typedef const T* const_iterator; // actual type is unspecified
115+
typedef CharT* iterator; // actual type is unspecified
116+
typedef const CharT* const_iterator; // actual type is unspecified
117117
typedef std::reverse_iterator<iterator> reverse_iterator;
118118
typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
119119

0 commit comments

Comments
 (0)