Skip to content

Commit fa510f2

Browse files
Add TODO
1 parent a98ac47 commit fa510f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libcxx/include/string

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,6 +1212,9 @@ public:
12121212
}
12131213
# endif // _LIBCPP_CXX03_LANG
12141214

1215+
// TODO(boomanaiden154): Once we mark this in destructors as dead on return,
1216+
// we can use a normal call to __reset_internal_buffer and remove the extra
1217+
// __rep constructor.
12151218
inline _LIBCPP_CONSTEXPR_SINCE_CXX20 ~basic_string() { __reset_internal_buffer(__rep(__uninitialized_tag())); }
12161219

12171220
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 operator __self_view() const _NOEXCEPT {

0 commit comments

Comments
 (0)