From 14c71dbf6f2a6c6e8c755f8ecb4c4a94a9c0775d Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Sat, 26 Oct 2024 21:34:38 +0200 Subject: [PATCH] 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 42de0213..e1e953f5 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;