Avoid std::terminate for R package. (#7661)

This is part of CRAN policies.
This commit is contained in:
Jiaming Yuan
2022-02-17 01:27:20 +08:00
committed by GitHub
parent 12949c6b31
commit 711f7f3851
2 changed files with 17 additions and 6 deletions

View File

@@ -114,9 +114,6 @@ template <typename GradientSumT, typename ExpandEntry> class HistEvaluator {
left_sum.SetSubstract(parent.stats, right_sum);
break;
}
default: {
std::terminate();
}
}
};