Skip to content

Commit decf4a0

Browse files
authored
Capturing by values does a copy of the whole column vector (#11)
1 parent 0dbb4ca commit decf4a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vapid/soa.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ namespace vapid {
194194

195195
auto& col = get_column<col_idx>();
196196

197-
auto comparator_wrapper = [=](size_t a, size_t b) {
197+
auto comparator_wrapper = [&](size_t a, size_t b) {
198198
return comparator(col[a], col[b]);
199199
};
200200

0 commit comments

Comments
 (0)