From 6fef22f1edc87a407adecc18013498c7677558b9 Mon Sep 17 00:00:00 2001 From: dellaert Date: Thu, 8 Nov 2018 16:18:12 -0500 Subject: [PATCH] C++ typedef is all we need? --- gtsam/base/FastVector.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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