From 636425404d18347061114c735b8ffc77cdaf0d69 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sun, 2 Jan 2022 19:57:07 -0500 Subject: [PATCH] Fix compile error on windows --- gtsam/discrete/DecisionTree-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/discrete/DecisionTree-inl.h b/gtsam/discrete/DecisionTree-inl.h index af52a6daf..259489f06 100644 --- a/gtsam/discrete/DecisionTree-inl.h +++ b/gtsam/discrete/DecisionTree-inl.h @@ -662,7 +662,7 @@ namespace gtsam { DecisionTree DecisionTree::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."); }