From 3421c0de78aead80d0773955362224e97cf42c46 Mon Sep 17 00:00:00 2001 From: "Agarwal, Udit" Date: Tue, 26 Nov 2024 07:17:51 -0800 Subject: [PATCH] Use std::move instead of copy --- sycl/include/sycl/property_list.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sycl/include/sycl/property_list.hpp b/sycl/include/sycl/property_list.hpp index 59620f56a707c..8f019eb7cf22b 100644 --- a/sycl/include/sycl/property_list.hpp +++ b/sycl/include/sycl/property_list.hpp @@ -84,7 +84,8 @@ class PropertyValidator { static void checkPropsAndThrow(const property_list &PropList, std::function FunctionForDataless, std::function FunctionForData) { - PropList.checkPropsAndThrow(FunctionForDataless, FunctionForData); + PropList.checkPropsAndThrow(std::move(FunctionForDataless), + std::move(FunctionForData)); } }; } // namespace detail