19 Sep
2002
19 Sep
'02
11:22 p.m.
--- In Boost-Users@y..., Mark Storer
Are you saying that if I switch from scoped_ptr to shared_ptr the destructor will get called?
Is he saying that the destructor is NOT getting called with scoped_ptr? (!)
--Mark Storer Software Engineer Cardiff Software
No. Borland C++ Builder 5.5 (with debug turned on) generates the destructor code in the wrong translation unit. So suddenly my auto_ptr's, scoped_ptr's, etc, hold pointers to incomplete types. The auto_ptr's don't call the destructors, and the scoped_ptr's won't compile (because of that cool compile time incomplete type check). I tried switching to shared_ptr but my destructors were not called either. I am so mad at Borland right now. Brian Neal