Skip to content

Commit 431dc1a

Browse files
committed
DPL: use constraint rather than static_assert
1 parent bdde904 commit 431dc1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Framework/Core/include/Framework/DataAllocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ class DataAllocator
144144
using DataDescription = o2::header::DataDescription;
145145
using SubSpecificationType = o2::header::DataHeader::SubSpecificationType;
146146
template <typename T>
147+
requires std::is_fundamental_v<T>
147148
struct UninitializedVector {
148-
static_assert(std::is_fundamental<T>::value, "UninitializedVector only allowed for fundamental types");
149149
using value_type = T;
150150
};
151151

0 commit comments

Comments
 (0)