Changeset 37 for pjproject/main/pjlib/include/pj++/pool.hpp
- Timestamp:
- Nov 9, 2005 3:51:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/main/pjlib/include/pj++/pool.hpp
r36 r37 16 16 public: 17 17 void *operator new(unsigned int class_size, Pj_Pool *pool); 18 void operator delete(void*); 19 void operator delete(void*, Pj_Pool*); 18 void *operator new(unsigned int class_size, Pj_Pool &pool); 19 20 void operator delete(void*) 21 { 22 } 23 24 void operator delete(void*, Pj_Pool*) 25 { 26 } 27 28 void operator delete(void*, Pj_Pool&) 29 { 30 } 20 31 21 32 // … … 221 232 return pool->alloc(class_size); 222 233 } 223 inline void Pj_Object::operator delete(void *ptr) 224 { 225 } 226 inline void Pj_Object::operator delete(void *ptr, Pj_Pool*) 227 { 234 inline void *Pj_Object::operator new(unsigned int class_size, Pj_Pool &pool) 235 { 236 return pool.alloc(class_size); 228 237 } 229 238
Note: See TracChangeset
for help on using the changeset viewer.