From 4c333ebada01f2235adc7a3901b67843ad2ae358 Mon Sep 17 00:00:00 2001 From: Arthur O'Dwyer Date: Fri, 11 Oct 2024 22:31:13 -0400 Subject: [PATCH] Traits.h: Fix feature-test macro for P1144 trivial relocatability Well, this is awkward. #2216 added this `#if` check, but with the wrong macro: `__cpp_lib_is_trivially_relocatable` should have been `__cpp_lib_trivially_relocatable`. --- folly/Traits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/Traits.h b/folly/Traits.h index 4d469eb2a9e..6881fd0d29d 100644 --- a/folly/Traits.h +++ b/folly/Traits.h @@ -640,7 +640,7 @@ struct IsRelocatable !require_sizeof || is_detected_v, traits_detail::has_true_IsRelocatable, -#if defined(__cpp_lib_is_trivially_relocatable) // P1144 +#if defined(__cpp_lib_trivially_relocatable) // P1144 std::is_trivially_relocatable #else std::is_trivially_copyable