fix gnustl vector dtor

This commit is contained in:
mat 2023-10-11 15:23:13 -03:00 committed by GitHub
parent 0bdb0df702
commit b55e6465ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -405,7 +405,12 @@ namespace gd {
} }
~vector() { ~vector() {
if (m_start) delete m_start; if (m_start) {
for (auto& x : *this) {
x.~T();
}
delete m_start;
}
} }
size_t size() const { size_t size() const {