9 Sep
2009
9 Sep
'09
8:04 a.m.
Peter, Stefan, thanks for your clarifications. My question arose from the sad fact that MSVC9.0SP1 doesn't implement tr1::shared_ptr to be safe for the above scenario. So I try to figure out whether it's a bug or legetimate implementation.
it is, because shared_ptr::reset() is specified to be equivalent to shared_ptr().swap(*this).
I found this statement in the boost doc, but does it appear in the Standard, or is it boost-specific? Thanks again.