diff --git a/gtsam/discrete/tests/testDecisionTree.cpp b/gtsam/discrete/tests/testDecisionTree.cpp index 28b8866ad..b44306723 100644 --- a/gtsam/discrete/tests/testDecisionTree.cpp +++ b/gtsam/discrete/tests/testDecisionTree.cpp @@ -179,8 +179,8 @@ TEST(DT, example) enum Label { U, V, X, Y, Z }; -typedef DecisionTree BDT; -int convert(const int& y) { +typedef DecisionTree BDT; +bool convert(const int& y) { return y != 0; } @@ -196,7 +196,7 @@ TEST(DT, conversion) map ordering; ordering[A] = X; ordering[B] = Y; - std::function op = convert; + std::function op = convert; BDT f2(f1, ordering, op); // f1.print("f1"); // f2.print("f2");