Commit 77553d9
committed
[VecOps] Do not enforce const-ness in Map function parameters
Before this commit, the lambda passed to VecOps::Map could not
take arguments by non-const reference as the implementation was
adding a const qualifier to the RVec arguments.
We now instead forward RVecs from Map to MapImpl keeping their
cv qualifiers.
A test has been added.1 parent c8843bf commit 77553d9
2 files changed
+24
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
| 103 | + | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1204 | 1204 | | |
1205 | 1205 | | |
1206 | 1206 | | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
1207 | 1229 | | |
1208 | 1230 | | |
1209 | 1231 | | |
| |||
0 commit comments