void f(shared_ptr<int>, int); int g(); void bad() { f(shared_ptr<int>(new int(2)), g()); }
f
shared_ptr
g()
new int
auto_ptr
something(new classname(...))
h()
new A
g(*)
shared_ptr()
new int(2)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)