Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

ptr to my Base class and call the destructors in there ?

base class destructors PTR
0
Posted

ptr to my Base class and call the destructors in there ?

0

pseudo code: class memory_pool { void operator delete (void * ptr, Pool & pool) // used in case of exception at new void operator delete (void * ptr) // used for atomic types void operator delete (Base * ptr) // used for everything derived from Base } and have a template class template { void free() { some_pool::operator delete (data); } A * data } In this case the free method of the template would always choose the

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123