Example:
{
std::shared_ptr<A> a(new A("First"));
std::shared_ptr<A> b(a);
}
Which of these is the first to be deleted?
Example:
{
std::shared_ptr<A> a(new A("First"));
std::shared_ptr<A> b(a);
}
Which of these is the first to be deleted?