Skip to content

Commit 6d25c1b

Browse files
Dan Holmeskbenzie
authored andcommitted
Fix strange capture warning/error
1 parent a44f811 commit 6d25c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/loader/ur_lib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ ur_result_t urDeviceGetSelected(ur_platform_handle_t hPlatform,
409409
};
410410

411411
auto getDeviceId =
412-
[DeviceIdTypeALL](const std::string &input) -> DeviceIdType {
412+
[&](const std::string &input) -> DeviceIdType {
413413
if (input.find_first_not_of("0123456789") == std::string::npos) {
414414
return std::stoul(input);
415415
}

0 commit comments

Comments
 (0)