EASTL
EASTL copied to clipboard
fix swap of eastl::list<unique_ptr[]>
...or any other type that has deleted dtor.
const this_type temp(*this); // << This would attept to call copy ctor of unique_ptr<> which is explicitly deleted
*this = x;
x = temp;
Nvm, this did not fix it. WIP, please don't merge (yet)
Okay. Now fixed. Code like
eastl::list<eastl::unique_ptr<T>> foo, bar;
foo.swap(bar)
now compiles (but require EASTL_NAME_ENABLED being off)