From 52f8969278ae5b2b114083a12b8f33316c12ebf5 Mon Sep 17 00:00:00 2001 From: Denis Yaroshevskiy Date: Thu, 10 Oct 2024 05:47:16 -0700 Subject: [PATCH] ]: replace some usings with inheritance Summary: The name get's a little long in error messages, inheritance will help with that Differential Revision: D64177693 --- folly/algorithm/simd/detail/SimdPlatform.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/folly/algorithm/simd/detail/SimdPlatform.h b/folly/algorithm/simd/detail/SimdPlatform.h index fee6e8d2577..7845b17e7d6 100644 --- a/folly/algorithm/simd/detail/SimdPlatform.h +++ b/folly/algorithm/simd/detail/SimdPlatform.h @@ -294,7 +294,7 @@ struct SimdSse42PlatformSpecific { #define FOLLY_DETAIL_HAS_SIMD_PLATFORM 1 template -using SimdSse42Platform = SimdPlatformCommon>; +struct SimdSse42Platform : SimdPlatformCommon> {}; #if defined(__AVX2__) @@ -371,7 +371,7 @@ struct SimdAvx2PlatformSpecific { }; template -using SimdAvx2Platform = SimdPlatformCommon>; +struct SimdAvx2Platform : SimdPlatformCommon> {}; template using SimdPlatform = SimdAvx2Platform; @@ -379,7 +379,7 @@ using SimdPlatform = SimdAvx2Platform; #else template -using SimdPlatform = SimdPlatformCommon>; +using SimdPlatform = SimdSse42Platform; #endif @@ -497,7 +497,8 @@ struct SimdAarch64PlatformSpecific { #define FOLLY_DETAIL_HAS_SIMD_PLATFORM 1 template -using SimdAarch64Platform = SimdPlatformCommon>; +struct SimdAarch64Platform + : SimdPlatformCommon> {}; template using SimdPlatform = SimdAarch64Platform;