@@ -48,7 +48,7 @@ class GPUTPCTrkLbl
4848 }
4949 inline void addLabel (uint32_t elementId)
5050 {
51- if constexpr (std::is_same <T, AliHLTTPCClusterMCWeight>::value ) {
51+ if constexpr (std::is_same_v <T, AliHLTTPCClusterMCWeight>) {
5252 for (uint32_t i = 0 ; i < sizeof (mClusterLabels [elementId]) / sizeof (mClusterLabels [elementId].fClusterID [0 ]); i++) {
5353 const auto & element = mClusterLabels [elementId].fClusterID [i];
5454 if (element.fMCID >= 0 ) {
@@ -101,7 +101,7 @@ class GPUTPCTrkLbl
101101 }
102102 }
103103 auto & bestLabel = mLabels [bestLabelNum].first ;
104- if constexpr (std::is_same <T, AliHLTTPCClusterMCWeight>::value && WEIGHT) {
104+ if constexpr (std::is_same_v <T, AliHLTTPCClusterMCWeight> && WEIGHT) {
105105 *labelWeight = bestLabel.fWeight ;
106106 *totalWeight = mTotalWeight ;
107107 *maxCount = bestLabelCount;
@@ -147,7 +147,7 @@ struct GPUTPCTrkLbl_ret {
147147template <bool WEIGHT = false , class U = void , class T , template <class > class S , typename ... Args>
148148static inline auto GPUTPCTrkLbl (const S<T>* x, Args... args)
149149{
150- if constexpr (std::is_same <U, void >::value ) {
150+ if constexpr (std::is_same_v <U, void >) {
151151 return internal::GPUTPCTrkLbl<WEIGHT, T, S<T>>(x, args...);
152152 } else {
153153 return internal::GPUTPCTrkLbl<WEIGHT, T, S<T>, U>(x, args...);
@@ -159,7 +159,7 @@ static inline auto GPUTPCTrkLbl(const AliHLTTPCClusterMCLabel* x, Args... args)
159159{
160160 using S = AliHLTTPCClusterMCLabel;
161161 using T = AliHLTTPCClusterMCWeight;
162- if constexpr (std::is_same <U, void >::value ) {
162+ if constexpr (std::is_same_v <U, void >) {
163163 return internal::GPUTPCTrkLbl<WEIGHT, T, S>(x, args...);
164164 } else {
165165 return internal::GPUTPCTrkLbl<WEIGHT, T, S, U>(x, args...);
0 commit comments