Stack added + found bugs squashed

This commit is contained in:
2019-05-07 19:43:31 +02:00
parent 3edd654f60
commit c1e498dfa0
6 changed files with 99 additions and 6 deletions

View File

@@ -12,6 +12,13 @@ private:
public:
void Resize(std::size_t const newSize)
{
if(newSize == 0ul)
{
std::free(data);
data = nullptr;
return;
}
void * result = std::realloc(data, newSize * sizeof(T));
if(result == nullptr)
{