projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
982ea13
)
Change string_view::at to make it work with gcc and VC++. Thanks to K-ballo for the...
author
Marshall Clow
<mclow.lists@gmail.com>
Mon, 23 Feb 2015 21:12:02 +0000
(21:12 +0000)
committer
Marshall Clow
<mclow.lists@gmail.com>
Mon, 23 Feb 2015 21:12:02 +0000
(21:12 +0000)
llvm-svn: 230260
libcxx/include/experimental/string_view
patch
|
blob
|
history
diff --git
a/libcxx/include/experimental/string_view
b/libcxx/include/experimental/string_view
index
b8d061f
..
2a20d7c
100644
(file)
--- a/
libcxx/include/experimental/string_view
+++ b/
libcxx/include/experimental/string_view
@@
-280,11
+280,8
@@
_LIBCPP_BEGIN_NAMESPACE_LFTS
const_reference at(size_type __pos) const
{
return __pos >= size()
- ?
throw out_of_range("string_view::at"
)
+ ?
(throw out_of_range("string_view::at"), __data[0]
)
: __data[__pos];
-// if (__pos >= size())
-// throw out_of_range("string_view::at");
-// return __data[__pos];
}
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY