C++多线程下子类”部分析构”问题
#include <string>
#include <iostream>
using namespace std;
/*
* This is a simple example used to reveal memory issue when we destruct a object of child class.
*1.Set two break points as shown below.
*2.Watch the memory of "ch".
*3.Start the exmple.
* Observe the memory content of "ch", we can get the following conclusions:
* When we break at ~child(), the memory