From 22fcec43690025693634a7b5b50132995ab13df2 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Wed, 7 Apr 2021 16:36:57 -0400 Subject: [PATCH 1/2] change KeyFormatter from boost::function to std::function --- gtsam/inference/Key.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtsam/inference/Key.h b/gtsam/inference/Key.h index 8b13f0b4ca..1eb57d7fcf 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); From 1d0c61b072edd3ba543cb2daba669f817ea8e17b Mon Sep 17 00:00:00 2001 From: Gerry Chen Date: Thu, 8 Apr 2021 01:42:09 -0400 Subject: [PATCH 2/2] remove boost::function from Key.h --- gtsam/inference/Key.h | 1 - gtsam/inference/LabeledSymbol.h | 1 + gtsam/inference/Symbol.h | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gtsam/inference/Key.h b/gtsam/inference/Key.h index 1eb57d7fcf..2cc19d07a5 100644 --- a/gtsam/inference/Key.h +++ b/gtsam/inference/Key.h @@ -25,7 +25,6 @@ #include #include -#include #include #include diff --git a/gtsam/inference/LabeledSymbol.h b/gtsam/inference/LabeledSymbol.h index d46425bb48..15a2a25014 100644 --- a/gtsam/inference/LabeledSymbol.h +++ b/gtsam/inference/LabeledSymbol.h @@ -20,6 +20,7 @@ #pragma once #include +#include namespace gtsam { diff --git a/gtsam/inference/Symbol.h b/gtsam/inference/Symbol.h index d5699e7fed..89fb0d161e 100644 --- a/gtsam/inference/Symbol.h +++ b/gtsam/inference/Symbol.h @@ -21,6 +21,7 @@ #include #include #include +#include #include namespace gtsam {