22 Aug
2002
22 Aug
'02
1:13 p.m.
-----Original Message----- From: wugui [mailto:yg-boost-users@m.gmane.org]
class A; class B; class AB : virtual public A, virtual public B;
all destruct is virtual
boost::object_pool<AB> pool_ab;
B * pb = pool_ab.constuct(); pool_ab.destroy(pb); // is this right?
This looks right to me; what "pool_ab.destroy(pb);" does is: pb->~AB(); free(pb); // puts pb back in the free list of pool_ab -Steve