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_ptrHow 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