File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 10
10
#define _LIBCPP___UTILITY_NO_DESTROY_H
11
11
12
12
#include < __config>
13
- #include < __memory/construct_at.h>
14
13
#include < __type_traits/is_constant_evaluated.h>
15
14
#include < __utility/forward.h>
16
15
#include < new>
@@ -31,12 +30,7 @@ struct __uninitialized_tag {};
31
30
// initialization using __emplace.
32
31
template <class _Tp >
33
32
struct __no_destroy {
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)
37
- std::__construct_at (__obj_ + __i);
38
- }
39
- }
33
+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR explicit __no_destroy (__uninitialized_tag) : __obj_() { }
40
34
41
35
template <class ... _Args>
42
36
_LIBCPP_HIDE_FROM_ABI explicit __no_destroy (_Args&&... __args) {
You can’t perform that action at this time.
0 commit comments