From 14c71dbf6f2a6c6e8c755f8ecb4c4a94a9c0775d Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Sat, 26 Oct 2024 21:34:38 +0200 Subject: [PATCH 1/2] core: Add inline to deprecationTypeToPyObj definition to avoid linking error --- include/eigenpy/deprecation-policy.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/eigenpy/deprecation-policy.hpp b/include/eigenpy/deprecation-policy.hpp index 42de0213c..e1e953f5a 100644 --- a/include/eigenpy/deprecation-policy.hpp +++ b/include/eigenpy/deprecation-policy.hpp @@ -13,7 +13,7 @@ enum class DeprecationType { DEPRECATION, FUTURE }; namespace detail { -PyObject *deprecationTypeToPyObj(DeprecationType dep) { +inline PyObject *deprecationTypeToPyObj(DeprecationType dep) { switch (dep) { case DeprecationType::DEPRECATION: return PyExc_DeprecationWarning; From 0743f9cda747fc0c1615ea8367746292e6bbd7db Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Sat, 26 Oct 2024 21:39:26 +0200 Subject: [PATCH 2/2] changelog: Add entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01eda53a1..5f91aba74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Fixed - Don't use C++14 feature ([#510](https://github.com/stack-of-tasks/eigenpy/pull/510)) +- Add inline to `deprecationTypeToPyObj` definition to avoid linking error ([#512](https://github.com/stack-of-tasks/eigenpy/pull/512)) ## [3.10.0] - 2024-09-26