19 Mar
2009
19 Mar
'09
12:28 a.m.
Hello, Consider the following: void createSharePtr( boost::shared_ptr<int> value) { value.reset( new int(100)); } main() { boost::shared_ptr<int> y( new int(0)); createSharePtr( y); }; Question: Does the function createSharePtr() cause memory leak? Thanks, Ben