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 b060022 commit 452acb8Copy full SHA for 452acb8
libcxx/include/__new/allocate.h
@@ -10,7 +10,6 @@
10
#define _LIBCPP___NEW_ALLOCATE_H
11
12
#include <__config>
13
-#include <__cstddef/max_align_t.h>
14
#include <__cstddef/size_t.h>
15
#include <__new/align_val_t.h>
16
#include <__new/global_new_delete.h> // for _LIBCPP_HAS_SIZED_DEALLOCATION
@@ -24,11 +23,7 @@
24
23
_LIBCPP_BEGIN_NAMESPACE_STD
25
26
_LIBCPP_CONSTEXPR inline _LIBCPP_HIDE_FROM_ABI bool __is_overaligned_for_new(size_t __align) _NOEXCEPT {
27
-#ifdef __STDCPP_DEFAULT_NEW_ALIGNMENT__
28
return __align > __STDCPP_DEFAULT_NEW_ALIGNMENT__;
29
-#else
30
- return __align > _LIBCPP_ALIGNOF(max_align_t);
31
-#endif
32
}
33
34
template <class... _Args>
0 commit comments