shared_ptr does not call destructor

14 Dec
2002
14 Dec
'02
11:32 p.m.
Hi: I am using windows 2000 with VC 6.0 and boost 1.28. In my project, I have an array of pointers to objects: class foo { public: ~foo() {} private: std::vector<boost::shared_ptr<MyType> > myArr_; }; I found that the destructor for MyType is never called. Printing the shared_ptr::use_count = 6 at ~foo() above. Any suggestions on what could be happening and how to approach the debugging? Thanks, -Ani
8222
Age (days ago)
8222
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ani Taggu