Skip to content

Commit 6e95693

Browse files
committed
the deduction guide for array adjusted so it sends it to the correct template specialization. The dynamic_extent template arg is the same as the default the actual span created uses the compile time array size. The tests on llvm-test-suite are being updated as well.
Signed-off-by: Chris Perkins <[email protected]>
1 parent 3205368 commit 6e95693

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/include/CL/sycl/sycl_span.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,8 @@ as_writable_bytes(span<_Tp, _Extent> __s) noexcept
608608
}
609609

610610
// Deduction guides
611-
template <class _Tp, size_t _Sz> span(_Tp (&)[_Sz])->span<_Tp, _Sz>;
611+
template <class _Tp, size_t _Sz>
612+
span(_Tp (&)[_Sz]) -> span<_Tp, dynamic_extent>;
612613

613614
template <class _Tp, size_t _Sz> span(std::array<_Tp, _Sz> &)->span<_Tp, _Sz>;
614615

0 commit comments

Comments
 (0)