diff --git a/gtsam/base/FastVector.h b/gtsam/base/FastVector.h index 307a75c87..46bc25642 100644 --- a/gtsam/base/FastVector.h +++ b/gtsam/base/FastVector.h @@ -19,12 +19,20 @@ #pragma once #include -#include -#include #include namespace gtsam { +#ifndef GTSAM_USE_OLD_FAST_VECTOR + +template +using FastVector = std::vector::type>; + +#else + +#include +#include + /** * FastVector is a thin wrapper around std::vector that uses the boost * pool_allocator instead of the default STL allocator. This is just a @@ -91,4 +99,6 @@ class FastVector: public std::vector