Skip to content

Commit db440d8

Browse files
committed
construct with 0
1 parent 4ce1313 commit db440d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__utility/no_destroy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ struct __no_destroy {
3333
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR explicit __no_destroy(__uninitialized_tag) {
3434
if (__libcpp_is_constant_evaluated()) {
3535
for (size_t __i = 0; __i != sizeof(__obj_); ++__i)
36-
std::construct_at(__obj_ + __i);
36+
std::construct_at(__obj_ + __i, 0);
3737
}
3838
}
3939

0 commit comments

Comments
 (0)