From c3fa4f7b5c6409a6300a5f547a55f119ce883a68 Mon Sep 17 00:00:00 2001 From: ManifoldFR Date: Fri, 30 Aug 2024 17:48:20 +0200 Subject: [PATCH] [std-vector.hpp] make std::vector allocator type a template parameter for exposeStdVectorEigenSpecificType --- CHANGELOG.md | 4 ++++ include/eigenpy/std-vector.hpp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27804e89..c9782887 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Changed + +- The `exposeStdVectorEigenSpecificType()` template function now takes the vector allocator as a template parameter. + ## [3.8.2] - 2024-08-26 ### Fixed diff --git a/include/eigenpy/std-vector.hpp b/include/eigenpy/std-vector.hpp index 2dbdabfd..bcef20c8 100644 --- a/include/eigenpy/std-vector.hpp +++ b/include/eigenpy/std-vector.hpp @@ -485,9 +485,9 @@ struct StdVectorPythonVisitor { */ void EIGENPY_DLLAPI exposeStdVector(); -template +template > void exposeStdVectorEigenSpecificType(const char *name) { - typedef std::vector > VecMatType; + typedef std::vector VecMatType; std::string full_name = "StdVec_"; full_name += name; StdVectorPythonVisitor::expose(