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 89c1587 commit 01fc5d5Copy full SHA for 01fc5d5
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