|
Boost Users : |
From: Hughes, James (jhughes_at_[hidden])
Date: 2007-11-21 06:18:59
________________________________
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of swapna
Sent: 21 November 2007 10:10
To: boost-users_at_[hidden]
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
<http://in.rd.yahoo.com/tagline_webmessenger_5/*http://in.messenger.yaho
o.com/webmessengerpromo.php> 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.
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