Fix compile error on windows

release/4.3a0
Frank Dellaert 2022-01-02 19:57:07 -05:00
parent 6c23fd1e86
commit 636425404d
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ namespace gtsam {
DecisionTree<L, Y> DecisionTree<L, Y>::apply(const DecisionTree& g,
const Binary& op) const {
// It is unclear what should happen if either tree is empty:
if (empty() or g.empty()) {
if (empty() || g.empty()) {
throw std::runtime_error(
"DecisionTree::apply(binary op) undefined for empty trees.");
}