Skip to content

Commit

Permalink
Merge pull request #550 from VerenaBeckham/verena/item_conversion
Browse files Browse the repository at this point in the history
Deprecate item's conversion operator to an item with offset

(cherry picked from commit 9d39fb3)
  • Loading branch information
tomdeakin authored and gmlueck committed Nov 7, 2024
1 parent f3931cb commit c2aff41
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 @@ -11696,8 +11696,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 c2aff41

Please sign in to comment.