diff --git a/sycl/include/sycl/detail/group_sort_impl.hpp b/sycl/include/sycl/detail/group_sort_impl.hpp index 5f295304a80b2..d6fe300949a15 100644 --- a/sycl/include/sycl/detail/group_sort_impl.hpp +++ b/sycl/include/sycl/detail/group_sort_impl.hpp @@ -85,9 +85,13 @@ align_key_value_scratch(sycl::span scratch, Group g, } #endif +template void swap_tuples(T &first, T &second) { + std::swap(first, second); +} + // Swap tuples of references. template