From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of swapna
Sent: 21 November 2007 10:10
To: boost-users@lists.boost.org
Subject: [Boost-users] scoped_ptr

How can I instantiate a static pointer of a class using boost::scoped_pointer  ?
like for example:

static classA *A;
int main
{
...
...
A = new ClassA (PArameter list);
}
How do I do ths with boost::scoped_pointer.


Now you can chat without downloading messenger. Click here to know how. 
 
 
Surely the definition of the scoped_ptr is therefore outside of the scope in which you use it, so you should probably be using shared_ptr?
 
James
 

This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law. If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system. If you
have any questions about this e-mail please notify the sender
immediately.