Boost::shared_ptr and CPP_UNIT

13 Nov
2010
13 Nov
'10
10:50 a.m.
Hi there, In my unit test I do something like this - void setup() { m_a = ptr_t(new A()); m_b = ptr_t(new B(m_a)); m_c = ptr_t(new C()); m_b->Register(m_c); } void tearDown() { } I was wondering if I should be implementing anything in tearDown (like calling reset on these shared pointers) where I would normally call delete, and if so, why? Thanks, Barry -- View this message in context: http://boost.2283326.n4.nabble.com/Boost-shared-ptr-and-CPP-UNIT-tp3040738p3... Sent from the Boost - Users mailing list archive at Nabble.com.
5216
Age (days ago)
5216
Last active (days ago)
0 comments
1 participants
participants (1)
-
Barry79