summaryrefslogtreecommitdiffstats
path: root/libcxx/include/string_view
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2017-10-24 16:30:06 +0000
committerMarshall Clow <mclow.lists@gmail.com>2017-10-24 16:30:06 +0000
commitac2b3e3a7a7e49cfc486f95604a72775e41af11e (patch)
tree972b0c7487ba9974929febe4754ce20c4f891c77 /libcxx/include/string_view
parent9c8f853ca9ef959260e895c3c5bcdfdd34929936 (diff)
downloadbcm5719-llvm-ac2b3e3a7a7e49cfc486f95604a72775e41af11e.tar.gz
bcm5719-llvm-ac2b3e3a7a7e49cfc486f95604a72775e41af11e.zip
Mark string_view's constructor from (ptr,len) as noexcept (an extension). Update the tests to check this (and other noexcept bits
llvm-svn: 316456
Diffstat (limited to 'libcxx/include/string_view')
-rw-r--r--libcxx/include/string_view2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/string_view b/libcxx/include/string_view
index c5cc255eb57..3e112eba693 100644
--- a/libcxx/include/string_view
+++ b/libcxx/include/string_view
@@ -216,7 +216,7 @@ public:
basic_string_view& operator=(const basic_string_view&) _NOEXCEPT = default;
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY
- basic_string_view(const _CharT* __s, size_type __len)
+ basic_string_view(const _CharT* __s, size_type __len) _NOEXCEPT
: __data(__s), __size(__len)
{
// #if _LIBCPP_STD_VER > 11
OpenPOWER on IntegriCloud