Skip to content

Commit 554d5ec

Browse files
Add lifetimebound to std::basic_string::operator std::string_view
1 parent a643836 commit 554d5ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/string

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ public:
12131213
__alloc_traits::deallocate(__alloc(), __get_long_pointer(), __get_long_cap());
12141214
}
12151215

1216-
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 operator __self_view() const _NOEXCEPT {
1216+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 operator __self_view() const _NOEXCEPT _LIBCPP_LIFETIMEBOUND {
12171217
return __self_view(typename __self_view::__assume_valid(), data(), size());
12181218
}
12191219

0 commit comments

Comments
 (0)