
Hi,
In the following program...
#include
From looking at the boost source, it seems that line A results in a shared_ptr to nothing (use_count() == 0), and line B results in a shared_ptr to 0 (use_count() == 1).
I can work around this, I'm sure. Can anyone clarify my muddled thinking and explain why boost is behaving correctly in this situation (if indeed it is!) Many thanks Carl