1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-02-02 02:44:15 +00:00

added missed invariant for MemoryPool

This commit is contained in:
brain5lug 2017-09-29 10:17:23 +03:00
parent 8e3c9410dc
commit 346bf14b7b

View File

@ -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) {}