
2 May
2011
2 May
'11
8:02 p.m.
On 5/2/2011 12:49 PM, Emil Dotchevski wrote:
Then, what is the benefit of block_ptr compared to using raw pointers as cyclic references? Maybe I'm missing something but aren't they equally (un)safe?
I haven't considered this scenario when block_ptr are explicitly dereferenced in the destructor. Maybe I can add a function that can be called explicitly to check whether the pointee is cyclic and has already been destroyed. But thanks, -Phil