Boost logo

Boost Users :

From: Meryl Silverburgh (silverburgh.meryl_at_[hidden])
Date: 2007-05-08 09:31:35


Hi,

I have a vector <A*> and I want to switch boost's ref count pointer like this:

vector< boost::shared_ptr<A> > aVector;

aFunc(aVector[0]) ; // just call a

My question is should I change the function parameter of aFuncion from this:

void aFunc(A* aPtr) {
// access aPtr
}

to this:

void aFunc(shared_ptr<A> aPtr) {
// access aPtr
}

Thank you.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net