Boost logo

Boost Users :

Subject: Re: [Boost-users] Constructing a shared pointer from a const pointer
From: veerus (veeranjaneyulu.sadhanala_at_[hidden])
Date: 2009-11-11 01:52:02


To add more to the above query,
assume that 'bar' is defined as follows:

map<SX, SX> m;

bar( SX px )
{

 m.insert( pair<SX, SX>(px, someFunction( px ) ));

}

Can we do with a weak_ptr<X> instead of shared_ptr<X> ?

Thanks

-- 
View this message in context: http://old.nabble.com/Constructing-a-shared-pointer-from-a-const-pointer-tp26296800p26296870.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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