V
vivekian
Hi,
trying to compile the following piece of code
class PeerList
{
public :
....
PeerList ( int noPieces )
{
// using noPieces to dynamically allocate memory for an
array.
}
~PeerList ()
{
....
}
};
Now trying to make a list of objects of type PeerList so trying the
following :
std::list <PeerList> pl ;
But , how is the argument -- 'int noPieces' to be passed to this
declaration ?
thanks in advance ,
trying to compile the following piece of code
class PeerList
{
public :
....
PeerList ( int noPieces )
{
// using noPieces to dynamically allocate memory for an
array.
}
~PeerList ()
{
....
}
};
Now trying to make a list of objects of type PeerList so trying the
following :
std::list <PeerList> pl ;
But , how is the argument -- 'int noPieces' to be passed to this
declaration ?
thanks in advance ,