X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2Fpool_alloc_mixin.cti;h=3252ad09215d18a8d5304d8232616384b8d2ebe3;hb=6bb3fa3caaa41dab4d5b451ca27e70f9e55e49d6;hp=613996179401068c4fa775f83030d89a591f6a5e;hpb=47368f306a577d1e46df69a7f729bd3893cbe5e7;p=senf.git diff --git a/Utils/pool_alloc_mixin.cti b/Utils/pool_alloc_mixin.cti index 6139961..3252ad0 100644 --- a/Utils/pool_alloc_mixin.cti +++ b/Utils/pool_alloc_mixin.cti @@ -34,7 +34,7 @@ prefix_ void * senf::pool_alloc_mixin::operator new(size_t size) { // When deriving from Self you may not change the class's size without // inheriting from pool_alloc_mixin again. See pool_alloc_mixin documentation. - BOOST_ASSERT( size == sizeof(Self) ); + BOOST_ASSERT( size <= sizeof(Self) ); #ifndef NDEBUG allocCounter(1); #endif @@ -44,9 +44,6 @@ prefix_ void * senf::pool_alloc_mixin::operator new(size_t size) template prefix_ void senf::pool_alloc_mixin::operator delete(void * p, size_t size) { - // When deriving from Self you may not change the class's size without - // inheriting from pool_alloc_mixin again. See pool_alloc_mixin documentation. - BOOST_ASSERT( size == sizeof(Self) ); #ifndef NDEBUG allocCounter(-1); #endif @@ -81,4 +78,6 @@ prefix_ unsigned long senf::pool_alloc_mixin::allocCounter(long delta) // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: