Skip to content

Commit e4cbfaf

Browse files
author
JackAKirk
committed
Make SizeOfT constexpr
Signed-off-by: JackAKirk <[email protected]>
1 parent f574019 commit e4cbfaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/sycl/marray.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ __SYCL_INLINE_VER_NAMESPACE(_V1) {
1919

2020
template <std::size_t N, typename T> constexpr std::size_t vecAlignment() {
2121
static_assert(N > 0, "Invalid number of elements.");
22-
size_t SizeOfT = sizeof(T);
22+
constexpr size_t SizeOfT = sizeof(T);
2323
static_assert(SizeOfT > 0, "Invalid size of T.");
2424
// First find the "previous" vector num elements.
2525
size_t res = N >= 16 ? 16

0 commit comments

Comments
 (0)