Skip to content

Commit e880f95

Browse files
authored
[SYCL][Doc] Update spec wording regarding C++20 (#16713)
We decided in KhronosGroup/SYCL-Docs#667 to use this wording for SYCL APIs that require C++ features added after C++17. The next version of the SYCL spec formally adopts this wording in KhronosGroup/SYCL-Docs#680.
1 parent cc6148d commit e880f95

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

sycl/doc/extensions/proposed/sycl_ext_oneapi_device_image_backend_content.asciidoc

+2-5
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ class device_image {
101101
backend ext_oneapi_get_backend() const noexcept;
102102
std::vector<std::byte> ext_oneapi_get_backend_content() const;
103103
104-
#if defined(__cpp_lib_span)
105-
std::span<std::byte> ext_oneapi_get_backend_content_view() const;
106-
#endif
104+
std::span<std::byte> ext_oneapi_get_backend_content_view() const; // Requires C++20
107105
108106
/*...*/
109107
};
@@ -154,8 +152,7 @@ std::span<std::byte> ext_oneapi_get_content_backend_view() const;
154152
----
155153
!====
156154

157-
Available only when the compiler defines the `__cpp_lib_span` feature-test macro
158-
(which is defined in {cpp}20 and higher).
155+
Minimum C++ Version: {cpp}20
159156

160157
_Constraints:_ Available only when `State` is `bundle_state::executable`.
161158

0 commit comments

Comments
 (0)