Merge pull request #735 from borglab/feature/std-keyformatter

KeyFormatter - boost::function to std::function
release/4.3a0
Gerry Chen 2021-04-08 04:20:49 -04:00 committed by GitHub
commit 58cc7b80e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -25,14 +25,14 @@
#include <gtsam/base/types.h> #include <gtsam/base/types.h>
#include <gtsam/dllexport.h> #include <gtsam/dllexport.h>
#include <boost/function.hpp> #include <functional>
#include <iosfwd> #include <iosfwd>
namespace gtsam { namespace gtsam {
/// Typedef for a function to format a key, i.e. to convert it to a string /// Typedef for a function to format a key, i.e. to convert it to a string
typedef boost::function<std::string(Key)> KeyFormatter; typedef std::function<std::string(Key)> KeyFormatter;
// Helper function for DefaultKeyFormatter // Helper function for DefaultKeyFormatter
GTSAM_EXPORT std::string _defaultKeyFormatter(Key key); GTSAM_EXPORT std::string _defaultKeyFormatter(Key key);

View File

@ -20,6 +20,7 @@
#pragma once #pragma once
#include <gtsam/inference/Symbol.h> #include <gtsam/inference/Symbol.h>
#include <boost/function.hpp>
namespace gtsam { namespace gtsam {

View File

@ -21,6 +21,7 @@
#include <gtsam/inference/Key.h> #include <gtsam/inference/Key.h>
#include <gtsam/base/Testable.h> #include <gtsam/base/Testable.h>
#include <boost/serialization/nvp.hpp> #include <boost/serialization/nvp.hpp>
#include <boost/function.hpp>
#include <cstdint> #include <cstdint>
namespace gtsam { namespace gtsam {