Boost logo

Boost :

From: Abdullah Sowayan (asowaya_at_[hidden])
Date: 2004-10-18 16:52:51

Please ignore my prior question. I finally understood the whole process.


-----Original Message-----
From: Abdullah Sowayan
Sent: Monday, October 18, 2004 11:53 AM
To: boost_at_[hidden]
Subject: [boost] Object Pool

I am trying to use the Object Pool library. In the documentation I came
across the following (html table):


ElementType *

ElementType must have a constructor matching ???; the number of
parameters given must not exceed what is supported through


Allocates and initializes an object of type ElementType. If out of
memory, returns 0. Amortized O(1).

1) What is "???" referring to?
2) What is I have the following class

class A
    A(int i, std::string s);

How can I create a pool of As? Note that there isn't a constructor A::A(
that takes nothing. How can I say that the pool for instance would
all objects to A::A(1, "Howdy")



Unsubscribe & other changes:

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