diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2017-12-20 16:31:40 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2017-12-20 16:31:40 +0000 |
commit | 7d661bb24882ac7ef724860eae9dbaa9bcd4fbd6 (patch) | |
tree | e614f38defef9fd5b4f883a6dc9b016138e1b607 /libcxx/include/string_view | |
parent | a32ddc463965498df32e86b2b3b23047af262bcd (diff) | |
download | bcm5719-llvm-7d661bb24882ac7ef724860eae9dbaa9bcd4fbd6.tar.gz bcm5719-llvm-7d661bb24882ac7ef724860eae9dbaa9bcd4fbd6.zip |
Fix the definitions of 'reference' and 'pointer' in string_view that no one uses :-). Thanks to K-ballo for the catch.
llvm-svn: 321188
Diffstat (limited to 'libcxx/include/string_view')
-rw-r--r-- | libcxx/include/string_view | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/string_view b/libcxx/include/string_view index 4d8358288f0..72cf816e8d5 100644 --- a/libcxx/include/string_view +++ b/libcxx/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; |