diff --git a/sycl/include/CL/sycl/nd_item.hpp b/sycl/include/CL/sycl/nd_item.hpp index db92989d03b52..77c00829120de 100644 --- a/sycl/include/CL/sycl/nd_item.hpp +++ b/sycl/include/CL/sycl/nd_item.hpp @@ -163,22 +163,20 @@ template class nd_item { Group.wait_for(events...); } - nd_item(const nd_item &rhs) = default; + nd_item(const nd_item &rhs) = default; - nd_item(nd_item &&rhs) = default; + nd_item(nd_item &&rhs) = default; - nd_item &operator=(const nd_item &rhs) = default; + nd_item &operator=(const nd_item &rhs) = default; - nd_item &operator=(nd_item &&rhs) = default; + nd_item &operator=(nd_item &&rhs) = default; - bool operator==(const nd_item &rhs) const { + bool operator==(const nd_item &rhs) const { return (rhs.localItem == this->localItem) && (rhs.globalItem == this->globalItem) && (rhs.Group == this->Group); } - bool operator!=(const nd_item &rhs) const { - return !((*this) == rhs); - } + bool operator!=(const nd_item &rhs) const { return !((*this) == rhs); } protected: friend class detail::Builder;