Browse Source

added missed invariant for MemoryPool

pull/967/head
brain5lug 7 years ago
parent
commit
346bf14b7b
  1. 2
      libi2pd/util.h

2
libi2pd/util.h

@ -33,6 +33,8 @@ namespace util @@ -33,6 +33,8 @@ namespace util
template<class T>
class MemoryPool
{
BOOST_STATIC_ASSERT_MSG(sizeof(T) >= sizeof(void*), "size cannot be less that general pointer size");
public:
MemoryPool (): m_Head (nullptr) {}

Loading…
Cancel
Save