diff --git a/libi2pd/util.h b/libi2pd/util.h index 1a9b9a73..5297b3ed 100644 --- a/libi2pd/util.h +++ b/libi2pd/util.h @@ -33,6 +33,8 @@ namespace util template class MemoryPool { + BOOST_STATIC_ASSERT_MSG(sizeof(T) >= sizeof(void*), "size cannot be less that general pointer size"); + public: MemoryPool (): m_Head (nullptr) {}