Skip to content

Commit dc6b276

Browse files
committed
test: fix compilation warning
1 parent 8a84414 commit dc6b276

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

unittest/std_vector.cpp

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,24 @@
77
#include "eigenpy/eigen-from-python.hpp"
88
#include "eigenpy/std-vector.hpp"
99

10-
template <typename MatType,
11-
typename Allocator = Eigen::aligned_allocator<MatType> >
12-
void printVectorOfMatrix(const std::vector<MatType, Allocator> &Ms) {
10+
template <typename MatType>
11+
void printVectorOfMatrix(
12+
const std::vector<MatType, Eigen::aligned_allocator<MatType> > &Ms) {
1313
const std::size_t n = Ms.size();
1414
for (std::size_t i = 0; i < n; i++) {
1515
std::cout << "el[" << i << "] =\n" << Ms[i] << '\n';
1616
}
1717
}
1818

19-
template <typename MatType,
20-
typename Allocator = Eigen::aligned_allocator<MatType> >
21-
std::vector<MatType, Allocator> copy(
22-
const std::vector<MatType, Allocator> &Ms) {
23-
std::vector<MatType, Allocator> out = Ms;
19+
template <typename MatType>
20+
std::vector<MatType, Eigen::aligned_allocator<MatType> > copy(
21+
const std::vector<MatType, Eigen::aligned_allocator<MatType> > &Ms) {
22+
std::vector<MatType, Eigen::aligned_allocator<MatType> > out = Ms;
2423
return out;
2524
}
2625

27-
template <typename MatType,
28-
typename Allocator = Eigen::aligned_allocator<MatType> >
29-
void setZero(std::vector<MatType, Allocator> &Ms) {
26+
template <typename MatType>
27+
void setZero(std::vector<MatType, Eigen::aligned_allocator<MatType> > &Ms) {
3028
for (std::size_t i = 0; i < Ms.size(); i++) {
3129
Ms[i].setZero();
3230
}

0 commit comments

Comments
 (0)