diff --git a/gtsam/linear/GaussianFactorGraph.cpp b/gtsam/linear/GaussianFactorGraph.cpp index ca06a9115..3be157d05 100644 --- a/gtsam/linear/GaussianFactorGraph.cpp +++ b/gtsam/linear/GaussianFactorGraph.cpp @@ -47,7 +47,7 @@ namespace gtsam { /* ************************************************************************* */ GaussianFactorGraph::Keys GaussianFactorGraph::keys() const { - std::set, boost::fast_pool_allocator > keys; + FastSet keys; BOOST_FOREACH(const sharedFactor& factor, *this) { if(factor) keys.insert(factor->begin(), factor->end()); } return keys; diff --git a/gtsam/linear/GaussianFactorGraph.h b/gtsam/linear/GaussianFactorGraph.h index 71d1d2088..b86b58696 100644 --- a/gtsam/linear/GaussianFactorGraph.h +++ b/gtsam/linear/GaussianFactorGraph.h @@ -21,6 +21,7 @@ #include +#include #include #include #include @@ -93,7 +94,7 @@ namespace gtsam { * Return the set of variables involved in the factors (computes a set * union). */ - typedef std::set, boost::fast_pool_allocator > Keys; + typedef FastSet Keys; Keys keys() const; /** Permute the variables in the factors */ diff --git a/gtsam/nonlinear/LieValues.h b/gtsam/nonlinear/LieValues.h index 7c6be82ce..55fd60daf 100644 --- a/gtsam/nonlinear/LieValues.h +++ b/gtsam/nonlinear/LieValues.h @@ -27,8 +27,7 @@ #include #include -#include - +#include #include #include #include @@ -58,7 +57,7 @@ namespace gtsam { */ typedef J Key; typedef typename J::Value Value; - typedef std::map, boost::fast_pool_allocator > > KeyValueMap; + typedef FastMap KeyValueMap; typedef typename KeyValueMap::value_type KeyValuePair; typedef typename KeyValueMap::iterator iterator; typedef typename KeyValueMap::const_iterator const_iterator; diff --git a/gtsam/nonlinear/Ordering.h b/gtsam/nonlinear/Ordering.h index 37c9706f3..06a73e80a 100644 --- a/gtsam/nonlinear/Ordering.h +++ b/gtsam/nonlinear/Ordering.h @@ -18,10 +18,7 @@ #pragma once -#include - - - +#include #include #include #include