Skip to content

Commit e0eb0f2

Browse files
committed
fix build
1 parent db440d8 commit e0eb0f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libcxx/include/__utility/no_destroy.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#define _LIBCPP___UTILITY_NO_DESTROY_H
1111

1212
#include <__config>
13+
#include <__memory/construct_at.h>
1314
#include <__type_traits/is_constant_evaluated.h>
1415
#include <__utility/forward.h>
1516
#include <new>
@@ -33,7 +34,7 @@ struct __no_destroy {
3334
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR explicit __no_destroy(__uninitialized_tag) {
3435
if (__libcpp_is_constant_evaluated()) {
3536
for (size_t __i = 0; __i != sizeof(__obj_); ++__i)
36-
std::construct_at(__obj_ + __i, 0);
37+
std::__construct_at(__obj_ + __i);
3738
}
3839
}
3940

0 commit comments

Comments
 (0)