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;