commit bca8217d25c814ac61d03c40ced56161569875fd parent ddab3970cdaf0016b23e4f3ec907b27774f09542 Author: Michael Savage <mikejsavage@gmail.com> Date: Wed Dec 28 20:37:03 +0200 Pool::release can take const elements Diffstat:
pool.h | | | 2 | +- |
diff --git a/pool.h b/pool.h @@ -73,7 +73,7 @@ public: return &elems[ idx ]; } - void release( T * elem ) { + void release( const T * elem ) { if( elem == NULL ) return; u32 idx = checked_cast< u32 >( elem - elems.ptr() );