Skip to content

Commit ff52d31

Browse files
authored
Merge pull request #279 from szadam/CID436580
Fix problem with auto that causes a copy
2 parents 3be6f54 + 7bdde88 commit ff52d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/memoryProviderAPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ struct providerHandleCheck
114114
std::function<std::variant<const char *, umf_result_t>(void)>> {};
115115

116116
TEST_P(providerHandleCheck, providerHandleCheckAll) {
117-
auto f = GetParam();
117+
const auto &f = GetParam();
118118
auto ret = f();
119119

120120
std::visit(

0 commit comments

Comments
 (0)