Skip to content

Commit 657e7f7

Browse files
fix feature test macro to use __cpp_trivial_relocatability per p2786r13
Signed-off-by: guptapratykshh <pratykshgupta9999@gmail.com>
1 parent 9d857b6 commit 657e7f7

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

libs/core/type_support/include/hpx/type_support/is_replaceable.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
namespace hpx::experimental {
1717

18-
#if defined(__cpp_lib_trivially_relocatable)
18+
#if defined(__cpp_trivial_relocatability)
1919
HPX_CXX_CORE_EXPORT template <typename T>
2020
struct is_replaceable : std::is_replaceable<T>
2121
{

libs/core/type_support/include/hpx/type_support/is_trivially_relocatable.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
namespace hpx::experimental {
1414

15-
#if defined(__cpp_lib_trivially_relocatable)
15+
#if defined(__cpp_trivial_relocatability)
1616
template <typename T>
1717
struct is_trivially_relocatable : std::is_trivially_relocatable<T>
1818
{

libs/core/type_support/include/hpx/type_support/relocate_at.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <type_traits>
1717

1818
#if defined(HPX_HAVE_P1144_STD_RELOCATE_AT) || \
19-
defined(__cpp_lib_trivially_relocatable)
19+
defined(__cpp_trivial_relocatability)
2020
#include <memory>
2121
#endif
2222

libs/core/type_support/include/hpx/type_support/uninitialized_relocation_primitives.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,6 @@ namespace hpx::experimental::util {
505505
first, last, dst_last, iterators_are_contiguous_default_t{});
506506
}
507507

508-
#endif // defined(__cpp_lib_trivially_relocatable)
508+
#endif // defined(HPX_HAVE_P1144_RELOCATE_AT)
509509

510510
} // namespace hpx::experimental::util

0 commit comments

Comments
 (0)