
8 May
2007
8 May
'07
7:31 a.m.
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.