11 Nov
2009
11 Nov
'09
6:52 a.m.
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-tp2... Sent from the Boost - Users mailing list archive at Nabble.com.