一个问题的最优解能够用原始问题的子问题的最优解构造得到。
An optimal solution to the problem could be constructed from optimal solutions to subproblems of the original problem.
有一些用户空间解决方案可以解决这个问题。例如为父类创建一个解构函数将直接释放子对象。
There are a few user space solutions to this problem, such as creating a destructor for the parent class that will release the child object directly.
应用推荐