- virtual ~RandomForest() {
- for (vector<AbstractDecisionTree*>::iterator it = decisionTrees.begin(); it != decisionTrees.end(); it++) {
- // we know that this is decision tree, so we can do a dynamic_case<DecisionTree*> here
- DecisionTree* decisionTree = dynamic_cast<DecisionTree*>(*it);
- // calling the destructor by deleting
- delete decisionTree;
- }
- }
+// virtual ~RandomForest() {
+// for (vector<AbstractDecisionTree*>::iterator it = decisionTrees.begin(); it != decisionTrees.end(); it++) {
+// // we know that this is decision tree, so we can do a dynamic_case<DecisionTree*> here
+// DecisionTree* decisionTree = dynamic_cast<DecisionTree*>(*it);
+// // calling the destructor by deleting
+// delete decisionTree;
+// }
+// }