IM
Size: a a a
V
IM
V
V
A
AH
БS
A
AH
A
W
class my_class//here call_ctor and my_class::ptr should point on the same object without mem leak
{
my_class()
{
static weak_ptr ptr = this;//???????????????????????????
}
};
auto call_ctor = make_shared<my_class>();
G
W
G
set_shared_ptr(ptr &shared_ptr<decltype(*this)>)
?W
G
W
V
W