> class a

> {

> };

 

> boost::shared_ptr<a> Ptr(new a());

 

> I need to pass this pointer as an argument to function (MyFunc) which access this as a reference

 

void MyFunc(Ptr ptrToObjWhichWontBeDestroyedWhenOriginalGoesOutOfScope)

{

}

 


******************************************************************************

"This message and any attachments are solely for the intended recipient and may contain confidential and privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

Interactive Transaction Solutions Ltd (2473364 England)

Registered Office:
Systems House,
Station Approach
Emsworth PO10 7PW

**********************************************************************

This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________