Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[container] Fix reducing capacity to 0 on DynamicArray::clear()
Calling shrink_to_fit() on a std::vector in libstdc++ is a no-op with exceptions disabled. This fix applies the "vector swap trick" to make it work even when compiling with -fno-exceptions.
- Loading branch information