Skip to content
Open
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
10 changes: 10 additions & 0 deletions sycl/include/sycl/platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,19 @@ class __SYCL_EXPORT platform : public detail::OwnerLessBase<platform> {

platform &operator=(platform &&rhs) = default;

#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
bool operator==(const platform &rhs) const { return impl == rhs.impl; }

bool operator!=(const platform &rhs) const { return !(*this == rhs); }
#else
friend bool operator==(const platform &lhs, const platform &rhs) {
return lhs.impl == rhs.impl;
}

friend bool operator!=(const platform &lhs, const platform &rhs) {
return !(lhs == rhs);
}
#endif // __INTEL_PREVIEW_BREAKING_CHANGES

/// Returns an OpenCL interoperability platform.
///
Expand Down