diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2018-04-29 02:38:35 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2018-04-29 02:38:35 +0300 |
commit | dc1396012e837beb0b438ce6ec9f4830b9292c24 (patch) | |
tree | 3853468eae13f36d9ad448ca5f3d3a6afa8b545a /server/TracyVector.hpp | |
parent | d64f0390da123e74aa61c968dcfd92dc6a8e5999 (diff) |
Add assert checking that there's space.
Diffstat (limited to 'server/TracyVector.hpp')
-rw-r--r-- | server/TracyVector.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/TracyVector.hpp b/server/TracyVector.hpp index c96c251d..254ce4ec 100644 --- a/server/TracyVector.hpp +++ b/server/TracyVector.hpp @@ -85,6 +85,7 @@ public: void push_back_no_space_check( const T& v ) { + assert( m_size < Capacity() ); m_ptr[m_size++] = v; } |