We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cc9cf1 commit 718a9b6Copy full SHA for 718a9b6
libc/src/__support/CPP/string.h
@@ -114,7 +114,7 @@ class string {
114
LIBC_INLINE constexpr const char &back() const LIBC_LIFETIMEBOUND {
115
return data()[size_ - 1];
116
}
117
- LIBC_INLINE char &back() { return data()[size_ - 1]; }
+ LIBC_INLINE char &back() LIBC_LIFETIMEBOUND { return data()[size_ - 1]; }
118
119
LIBC_INLINE constexpr const char &
120
operator[](size_t index) const LIBC_LIFETIMEBOUND {
0 commit comments