19 Sep
2002
19 Sep
'02
6:06 p.m.
From: "Brian"
--- In Boost-Users@y..., "Gennadiy E. Rozental"
wrote: This was discussed during Boost.Test review. Peter some time ago made a changes in boost::shared_ptr that allows it to be used with Borland 5.5 namely in the situation you described.
Gennadiy.
Hi...could you clarify this? All I noticed was that shared_ptr had that compile time check for an incomplete type removed, whereas scoped_ptr still has it. Are you saying that if I switch from scoped_ptr to shared_ptr the destructor will get called?
Yes, shared_ptr will call the destructor. It only requires a complete type at construction time.