Roland Dreier 1eb591e85c Fix deallocating never-allocated storage in vector.merge()
If merge() is called on an empty vector, then priv_merge_in_new_buffer() will
call deallocate() with size 0 on the old (not-yet-allocated) vector storage.
This violates the Allocator requirement that the pointer passed to deallocate()
must have come from a call to allocate() with the same size.

Fix this by checking old_cap against 0, and also add a unit test for this bug.
2019-02-23 18:46:06 -08:00
2017-05-22 10:47:07 +02:00
2018-09-23 15:54:39 -04:00
2014-08-18 14:58:08 +01:00
2014-05-28 15:50:13 +02:00
2018-06-26 21:50:16 +02:00
Description
STL-like containers from Boost
18 MiB
Languages
C++ 92.1%
C 7.7%
CMake 0.2%