2020#pragma once
2121
2222#include < gtsam/discrete/Assignment.h>
23+
2324#include < boost/function.hpp>
25+ #include < functional>
2426#include < iostream>
25- #include < vector>
2627#include < map>
28+ #include < vector>
2729
2830namespace gtsam {
2931
@@ -38,8 +40,8 @@ namespace gtsam {
3840 public:
3941
4042 /* * Handy typedefs for unary and binary function types */
41- typedef boost ::function<Y(const Y&)> Unary;
42- typedef boost ::function<Y(const Y&, const Y&)> Binary;
43+ typedef std ::function<Y(const Y&)> Unary;
44+ typedef std ::function<Y(const Y&, const Y&)> Binary;
4345
4446 /* * A label annotated with cardinality */
4547 typedef std::pair<L,size_t > LabelC;
@@ -107,7 +109,7 @@ namespace gtsam {
107109 /* * Convert to a different type */
108110 template <typename M, typename X> NodePtr
109111 convert (const typename DecisionTree<M, X>::NodePtr& f, const std::map<M,
110- L>& map, boost ::function<Y(const X&)> op);
112+ L>& map, std ::function<Y(const X&)> op);
111113
112114 /* * Default constructor */
113115 DecisionTree ();
@@ -143,7 +145,7 @@ namespace gtsam {
143145 /* * Convert from a different type */
144146 template <typename M, typename X>
145147 DecisionTree (const DecisionTree<M, X>& other,
146- const std::map<M, L>& map, boost ::function<Y(const X&)> op);
148+ const std::map<M, L>& map, std ::function<Y(const X&)> op);
147149
148150 // / @}
149151 // / @name Testable
0 commit comments