From dc6b276a03ae1eb0c7ccda5612a3f7e2b8bfe737 Mon Sep 17 00:00:00 2001
From: Justin Carpentier <justin.carpentier@inria.fr>
Date: Sun, 8 Jan 2023 12:02:11 +0100
Subject: [PATCH] test: fix compilation warning

---
 unittest/std_vector.cpp | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/unittest/std_vector.cpp b/unittest/std_vector.cpp
index 12bb9e2c..fa8a95e8 100644
--- a/unittest/std_vector.cpp
+++ b/unittest/std_vector.cpp
@@ -7,26 +7,24 @@
 #include "eigenpy/eigen-from-python.hpp"
 #include "eigenpy/std-vector.hpp"
 
-template <typename MatType,
-          typename Allocator = Eigen::aligned_allocator<MatType> >
-void printVectorOfMatrix(const std::vector<MatType, Allocator> &Ms) {
+template <typename MatType>
+void printVectorOfMatrix(
+    const std::vector<MatType, Eigen::aligned_allocator<MatType> > &Ms) {
   const std::size_t n = Ms.size();
   for (std::size_t i = 0; i < n; i++) {
     std::cout << "el[" << i << "] =\n" << Ms[i] << '\n';
   }
 }
 
-template <typename MatType,
-          typename Allocator = Eigen::aligned_allocator<MatType> >
-std::vector<MatType, Allocator> copy(
-    const std::vector<MatType, Allocator> &Ms) {
-  std::vector<MatType, Allocator> out = Ms;
+template <typename MatType>
+std::vector<MatType, Eigen::aligned_allocator<MatType> > copy(
+    const std::vector<MatType, Eigen::aligned_allocator<MatType> > &Ms) {
+  std::vector<MatType, Eigen::aligned_allocator<MatType> > out = Ms;
   return out;
 }
 
-template <typename MatType,
-          typename Allocator = Eigen::aligned_allocator<MatType> >
-void setZero(std::vector<MatType, Allocator> &Ms) {
+template <typename MatType>
+void setZero(std::vector<MatType, Eigen::aligned_allocator<MatType> > &Ms) {
   for (std::size_t i = 0; i < Ms.size(); i++) {
     Ms[i].setZero();
   }
-- 
GitLab