Skip to content

Commit 87e4f14

Browse files
psychocoderHPCSimeonEhrig
authored andcommitted
fix Vec::rAssign()
Avoid possible compile issues due to const result where you can not assign values too.
1 parent 2939d96 commit 87e4f14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/alpaka/Vec.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ namespace alpaka
489489
template<uint32_t T_elementIdx = T_dim - 1u>
490490
constexpr Vec<T_Type, T_dim> rAssign(T_Type const& value) const requires(T_elementIdx < T_dim)
491491
{
492-
auto result = *this;
492+
Vec<T_Type, T_dim> result = *this;
493493
result[T_elementIdx] = value;
494494
return result;
495495
}

0 commit comments

Comments
 (0)