Skip to content

Commit 5738576

Browse files
]: replace some usings with inheritance
Summary: X-link: facebook/folly#2311 The name get's a little long in error messages, inheritance will help with that Reviewed By: yfeldblum Differential Revision: D64177693 fbshipit-source-id: f0fd234f5deda25acfcc9252ff0c6c51f9c147e8
1 parent 218573b commit 5738576

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

third-party/folly/src/folly/algorithm/simd/detail/SimdPlatform.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ struct SimdSse42PlatformSpecific {
294294
#define FOLLY_DETAIL_HAS_SIMD_PLATFORM 1
295295

296296
template <typename T>
297-
using SimdSse42Platform = SimdPlatformCommon<SimdSse42PlatformSpecific<T>>;
297+
struct SimdSse42Platform : SimdPlatformCommon<SimdSse42PlatformSpecific<T>> {};
298298

299299
#if defined(__AVX2__)
300300

@@ -371,15 +371,15 @@ struct SimdAvx2PlatformSpecific {
371371
};
372372

373373
template <typename T>
374-
using SimdAvx2Platform = SimdPlatformCommon<SimdAvx2PlatformSpecific<T>>;
374+
struct SimdAvx2Platform : SimdPlatformCommon<SimdAvx2PlatformSpecific<T>> {};
375375

376376
template <typename T>
377377
using SimdPlatform = SimdAvx2Platform<T>;
378378

379379
#else
380380

381381
template <typename T>
382-
using SimdPlatform = SimdPlatformCommon<SimdSse42PlatformSpecific<T>>;
382+
using SimdPlatform = SimdSse42Platform<T>;
383383

384384
#endif
385385

@@ -497,7 +497,8 @@ struct SimdAarch64PlatformSpecific {
497497
#define FOLLY_DETAIL_HAS_SIMD_PLATFORM 1
498498

499499
template <typename T>
500-
using SimdAarch64Platform = SimdPlatformCommon<SimdAarch64PlatformSpecific<T>>;
500+
struct SimdAarch64Platform
501+
: SimdPlatformCommon<SimdAarch64PlatformSpecific<T>> {};
501502

502503
template <typename T>
503504
using SimdPlatform = SimdAarch64Platform<T>;

0 commit comments

Comments
 (0)