|
Boost Users : |
From: Brian (bneal_at_[hidden])
Date: 2002-09-19 18:22:09
--- In Boost-Users_at_y..., Mark Storer <mstorer_at_c...> wrote:
> >>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
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