@@ -138,9 +138,6 @@ template<class Container>
138138__SYCL_INLINE_NAMESPACE (cl) {
139139namespace sycl {
140140
141- // byte is unsigned char at sycl/image.hpp:58
142- using byte = unsigned char ;
143-
144141// asserts suppressed for device compatibility.
145142// TODO: enable
146143#if defined(__SYCL_DEVICE_ONLY__)
@@ -384,16 +381,17 @@ template <typename _Tp, size_t _Extent> class _SYCL_SPAN_TEMPLATE_VIS span {
384381 return rev_iterator (begin ());
385382 }
386383
387- _SYCL_SPAN_INLINE_VISIBILITY span<const byte, _Extent * sizeof (element_type)>
384+ _SYCL_SPAN_INLINE_VISIBILITY
385+ span<const std::byte, _Extent * sizeof (element_type)>
388386 __as_bytes () const noexcept {
389- return span<const byte, _Extent * sizeof (element_type)>{
390- reinterpret_cast <const byte *>(data ()), size_bytes ()};
387+ return span<const std:: byte, _Extent * sizeof (element_type)>{
388+ reinterpret_cast <const std:: byte *>(data ()), size_bytes ()};
391389 }
392390
393- _SYCL_SPAN_INLINE_VISIBILITY span<byte, _Extent * sizeof (element_type)>
391+ _SYCL_SPAN_INLINE_VISIBILITY span<std:: byte, _Extent * sizeof (element_type)>
394392 __as_writable_bytes () const noexcept {
395- return span<byte, _Extent * sizeof (element_type)>{
396- reinterpret_cast <byte *>(data ()), size_bytes ()};
393+ return span<std:: byte, _Extent * sizeof (element_type)>{
394+ reinterpret_cast <std:: byte *>(data ()), size_bytes ()};
397395 }
398396
399397private:
@@ -577,14 +575,14 @@ class _SYCL_SPAN_TEMPLATE_VIS span<_Tp, dynamic_extent> {
577575 return rev_iterator (begin ());
578576 }
579577
580- _SYCL_SPAN_INLINE_VISIBILITY span<const byte, dynamic_extent>
578+ _SYCL_SPAN_INLINE_VISIBILITY span<const std:: byte, dynamic_extent>
581579 __as_bytes () const noexcept {
582- return {reinterpret_cast <const byte *>(data ()), size_bytes ()};
580+ return {reinterpret_cast <const std:: byte *>(data ()), size_bytes ()};
583581 }
584582
585- _SYCL_SPAN_INLINE_VISIBILITY span<byte, dynamic_extent>
583+ _SYCL_SPAN_INLINE_VISIBILITY span<std:: byte, dynamic_extent>
586584 __as_writable_bytes () const noexcept {
587- return {reinterpret_cast <byte *>(data ()), size_bytes ()};
585+ return {reinterpret_cast <std:: byte *>(data ()), size_bytes ()};
588586 }
589587
590588private:
0 commit comments