Skip to content

Commit

Permalink
Make item's conversion operator to an item with offset deprecated. Si…
Browse files Browse the repository at this point in the history
…nce the offset has been deprecated it was an oversight not to deprecate this operator as well.
  • Loading branch information
Verena Beckham committed Apr 25, 2024
1 parent f812749 commit 41c5e59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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

0 comments on commit 41c5e59

Please sign in to comment.