diff --git a/gtsam/inference/Key.h b/gtsam/inference/Key.h index 8b13f0b4c..1eb57d7fc 100644 --- a/gtsam/inference/Key.h +++ b/gtsam/inference/Key.h @@ -26,13 +26,14 @@ #include #include +#include #include namespace gtsam { /// Typedef for a function to format a key, i.e. to convert it to a string -typedef boost::function KeyFormatter; +typedef std::function KeyFormatter; // Helper function for DefaultKeyFormatter GTSAM_EXPORT std::string _defaultKeyFormatter(Key key);