summaryrefslogtreecommitdiff
path: root/include/string_view
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2017-12-20 16:31:40 +0000
committerMarshall Clow <mclow.lists@gmail.com>2017-12-20 16:31:40 +0000
commitde0811ac71004db797d0bba7fba419dca5bad8aa (patch)
treea27aa310f08ab03bb4eead4e773d3837c9f46b32 /include/string_view
parent4b54e0fc2abfe7b1fa48425d8e72eb6a146ba49c (diff)
Fix the definitions of 'reference' and 'pointer' in string_view that no one uses :-). Thanks to K-ballo for the catch.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@321188 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/string_view')
-rw-r--r--include/string_view4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/string_view b/include/string_view
index 4d8358288..72cf816e8 100644
--- a/include/string_view
+++ b/include/string_view
@@ -196,9 +196,9 @@ public:
// types
typedef _Traits traits_type;
typedef _CharT value_type;
- typedef const _CharT* pointer;
+ typedef _CharT* pointer;
typedef const _CharT* const_pointer;
- typedef const _CharT& reference;
+ typedef _CharT& reference;
typedef const _CharT& const_reference;
typedef const_pointer const_iterator; // See [string.view.iterators]
typedef const_iterator iterator;