Skip to content

Commit 53f16d0

Browse files
authored
Merge pull request #512 from jorisv/topic/inline
Add iniline to deprecationTypeToPyObj definition to avoid linking error
2 parents 7dde109 + 0743f9c commit 53f16d0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

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

1111
- Don't use C++14 feature ([#510](https://github.com/stack-of-tasks/eigenpy/pull/510))
12+
- Add inline to `deprecationTypeToPyObj` definition to avoid linking error ([#512](https://github.com/stack-of-tasks/eigenpy/pull/512))
1213

1314
## [3.10.0] - 2024-09-26
1415

include/eigenpy/deprecation-policy.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ enum class DeprecationType { DEPRECATION, FUTURE };
1313

1414
namespace detail {
1515

16-
PyObject *deprecationTypeToPyObj(DeprecationType dep) {
16+
inline PyObject *deprecationTypeToPyObj(DeprecationType dep) {
1717
switch (dep) {
1818
case DeprecationType::DEPRECATION:
1919
return PyExc_DeprecationWarning;

0 commit comments

Comments
 (0)