Commit 81e4a93
committed
Update
This allows mapping into move only types. This was not previously
possible, because the copy constructor of `map_iteratort` copied the
value pointed to by its unique pointer in its `current` field. This can
also be considered to be more correct, because copying an iterator
should be expected to yield two copies, which point to the same value,
rather than two copies, which point to two separate values.map_iteratort to use a shared_ptr for current
1 parent 16bc92f commit 81e4a93
1 file changed
+3
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 83 | + | |
93 | 84 | | |
94 | 85 | | |
95 | 86 | | |
| |||
101 | 92 | | |
102 | 93 | | |
103 | 94 | | |
104 | | - | |
| 95 | + | |
105 | 96 | | |
106 | 97 | | |
107 | 98 | | |
| |||
0 commit comments