Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate item's conversion operator to an item with offset #550

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11686,8 +11686,11 @@ a@
[source]
----
operator item<Dimensions, true>() const
// Deprecated in SYCL 2020.
----
a@ Available only when: [code]#WithOffset == false#
a@ Deprecated in SYCL 2020.

Available only when: [code]#WithOffset == false#

Returns an [code]#item# representing the same information as the object holds
but also includes the offset set to 0. This conversion allow users to seamlessly
Expand Down
1 change: 1 addition & 0 deletions adoc/headers/item.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ template <int Dimensions = 1, bool WithOffset = true> class item {
// only available if WithOffset is true
id<Dimensions> get_offset() const;

// Deprecated in SYCL 2020.
// only available if WithOffset is false
operator item<Dimensions, true>() const;

Expand Down
Loading