Skip to content

Commit ebde399

Browse files
authored
Merge pull request #429 from stack-of-tasks/namespace
do not use namespace eigenpy and define bp
2 parents e55c568 + c60cf2a commit ebde399

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1111

1212
### Fixed
1313
- Fix the issue of missing exposition of Eigen types with __int64 scalar type ([#426](https://github.com/stack-of-tasks/eigenpy/pull/426))
14+
- Fix namespace use in unittest/std_pair.cpp ([#429](https://github.com/stack-of-tasks/eigenpy/pull/429))
1415

1516
## [3.3.0] - 2024-01-23
1617

unittest/std_pair.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ std::pair<T1, T2> copy(const std::pair<T1, T2>& pair) {
1818
}
1919

2020
BOOST_PYTHON_MODULE(std_pair) {
21-
using namespace eigenpy;
22-
23-
enableEigenPy();
21+
eigenpy::enableEigenPy();
2422

2523
typedef std::pair<int, double> PairType;
26-
StdPairConverter<PairType>::registration();
24+
eigenpy::StdPairConverter<PairType>::registration();
2725

2826
bp::def("std_pair_to_tuple", std_pair_to_tuple<int, double>);
2927
bp::def("copy", copy<int, double>);

0 commit comments

Comments
 (0)