reuse = 0;
return (mp_buffer + m_offset);
}
- else if(m_allocations == 1){
- if(limit_size > m_size){
- assert(0);
+ else{
+ if(m_allocations != 1){
+ throw_bad_alloc();
}
+ assert(limit_size <= m_size);
++m_allocations;
return mp_buffer;
}
- else{
- throw_bad_alloc();
- return mp_buffer;
- }
}
//!Returns maximum the number of objects the previously allocated memory