Commit 0962cd8
Vladimir 'virtul' Ivannikov
fix swap of e.g .eastl::list<unique_ptr[]> with stateless/default allocator
...or any other type that has deleted copy ctor.
Assume that if `allocator_type` is empty (*) then it's automatically
equal to passed instance and we can erase compile-time const assignment
branch, which is not compiles when T's copy ctor is deleted (e.g. unique_ptr)
(*) implicitly implied EASTL_NAME_ENABLED being off, since it's makes
allocator_type statefull1 parent 7fadbf0 commit 0962cd8
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1571 | 1571 | | |
1572 | 1572 | | |
1573 | 1573 | | |
1574 | | - | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
1575 | 1577 | | |
1576 | 1578 | | |
1577 | 1579 | | |
| |||
0 commit comments