mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 13:11:40 +00:00
added missed invariant for MemoryPool
This commit is contained in:
1 parent
8e3c9410dc
commit
346bf14b7b
1 file changed
+2
@@ -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) {}
|
||||
|
||||
Reference in new issue
Block a user