Boost logo

Boost :

Subject: [boost] [pool] Objects of varying sizes
From: Robert Dailey (rcdailey.lists_at_[hidden])
Date: 2012-05-04 15:14:24

Is it possible to create a pool for polymorphic types? For example:

class A;

class B : public A;
class C : public A;

I want to create a pool of type A, but the allocation can be for B or C at
any time. Will this work?

Boost list run by bdawes at, gregod at, cpdaniel at, john at