
23 Sep
2007
23 Sep
'07
9:51 p.m.
struct foo { }; boost::ptr_map<int, foo> bar; bar.insert(1, new foo()); bar.insert(1, new foo()); Does this code leak? Or does bar delete the second instance of foo? Boris