Skip to content
Merged
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
2 changes: 2 additions & 0 deletions sycl/include/CL/sycl/detail/pi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ template <class To, class From> inline To cast(From value) {
}

template <class To, class From> inline To cast(std::vector<From> value) {
// Silence the unused parameter warning.
(void)value;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std::ignore = value;

RT::assertion(false,
"Compatibility specialization, not expected to be used. "
"The only allowed cast using a vector of From values is "
Expand Down