16 Oct
2007
16 Oct
'07
4:31 p.m.
Hi,
The following program runs well in my system. However, if I change 1
to 0, it will terminate at the line with "delete". Does this mean that
boost::shared_ptr can tell if the pointer is from the stack or the
heap and does different things based on where the pointer is from?
Thanks,
Peng
#include <iostream>
#include