
12 Jun
2010
12 Jun
'10
1:33 p.m.
Christian Henning wrote:
All auto_ptrs have been copied a couple of lines before. See the std::copy call. After that my debugger tells me that all auto_ptrs are empty which makes sense. Still not clear to me what exactly happens when using bind.
bind does the equivalent of p.get()->foo(). This doesn't call auto_ptr::operator->, whereas your two other examples do. So maybe VC10 has a get() != 0 assertion inside its op->.