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