Ignore:
Timestamp:
Nov 9, 2005 3:51:49 PM (19 years ago)
Author:
bennylp
Message:

Test pj++ proactor (compile only)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/main/pjlib/include/pj++/pool.hpp

    r36 r37  
    1616public: 
    1717    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    } 
    2031 
    2132    // 
     
    221232    return pool->alloc(class_size); 
    222233} 
    223 inline void Pj_Object::operator delete(void *ptr) 
    224 { 
    225 } 
    226 inline void Pj_Object::operator delete(void *ptr, Pj_Pool*) 
    227 { 
     234inline void *Pj_Object::operator new(unsigned int class_size, Pj_Pool &pool) 
     235{ 
     236    return pool.alloc(class_size); 
    228237} 
    229238 
Note: See TracChangeset for help on using the changeset viewer.