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 db440d8 commit e0eb0f2Copy full SHA for e0eb0f2
libcxx/include/__utility/no_destroy.h
@@ -10,6 +10,7 @@
10
#define _LIBCPP___UTILITY_NO_DESTROY_H
11
12
#include <__config>
13
+#include <__memory/construct_at.h>
14
#include <__type_traits/is_constant_evaluated.h>
15
#include <__utility/forward.h>
16
#include <new>
@@ -33,7 +34,7 @@ struct __no_destroy {
33
34
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR explicit __no_destroy(__uninitialized_tag) {
35
if (__libcpp_is_constant_evaluated()) {
36
for (size_t __i = 0; __i != sizeof(__obj_); ++__i)
- std::construct_at(__obj_ + __i, 0);
37
+ std::__construct_at(__obj_ + __i);
38
}
39
40
0 commit comments