Zero capacity is invalid.

This commit is contained in:
Bartosz Taudul 2020-02-24 22:17:34 +01:00
parent 4695f60937
commit ece32b47df

View File

@ -1,6 +1,7 @@
#ifndef __TRACYFASTVECTOR_HPP__
#define __TRACYFASTVECTOR_HPP__
#include <assert.h>
#include <stddef.h>
#include "../common/TracyAlloc.hpp"
@ -21,6 +22,7 @@ public:
, m_write( m_ptr )
, m_end( m_ptr + capacity )
{
assert( capacity != 0 );
}
FastVector( const FastVector& ) = delete;