Skip to content

Commit 95b2e16

Browse files
committed
[libc++] Refactor node creation and destruction in list and forward_list
This removes a lot of code duplication, makes the code simpler and prepares the terrain for https://reviews.llvm.org/D101206, which will fix some UB in the node-based containers. This also allows removing the dependency of list and forward_list on unique_ptr by using __allocation_guard instead.
1 parent b57df9f commit 95b2e16

File tree

5 files changed

+122
-256
lines changed

5 files changed

+122
-256
lines changed

libcxx/include/chrono

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,8 @@ constexpr chrono::year operator ""y(unsigned lo
846846
# include <bit>
847847
# include <concepts>
848848
# include <cstring>
849+
# include <forward_list>
850+
# include <string>
849851
#endif
850852

851853
#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER == 20

0 commit comments

Comments
 (0)