diff --git a/test/loader/adapter_registry/search_order.cpp b/test/loader/adapter_registry/search_order.cpp index b946b2164f..9264bafe44 100644 --- a/test/loader/adapter_registry/search_order.cpp +++ b/test/loader/adapter_registry/search_order.cpp @@ -11,7 +11,7 @@ void assertRegistryPathSequence(std::vector testAdapterPaths, static size_t assertIndex = 0; auto pathIt = std::find_if(testAdapterPaths.cbegin(), - testAdapterPaths.cend(), predicate); + testAdapterPaths.cend(), std::move(predicate)); size_t index = std::distance(testAdapterPaths.cbegin(), pathIt); ASSERT_EQ(index, assertIndex++); }