From b1659a0bb09c50fdd7cf3a57a908af1fd3b64da5 Mon Sep 17 00:00:00 2001 From: Denis Yaroshevskiy Date: Mon, 14 Oct 2024 05:54:11 -0700 Subject: [PATCH] ]: replace some usings with inheritance (#2311) Summary: The name get's a little long in error messages, inheritance will help with that Reviewed By: yfeldblum 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 d0e0c70c2af..ab36adfe0f1 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;