
5 Nov
2013
5 Nov
'13
11:12 p.m.
Q1: Is the below code dangerous?
A1: Only if the anonymous shared_ptr is deleted before function f returns.
Q2: Is the anonymous shared_ptr deleted before function f returns?
A2: ?
Thank you,
Chris
===
#include <iostream>
#include