Skip to content

Commit 14c71db

Browse files
committed
core: Add inline to deprecationTypeToPyObj definition to avoid linking error
1 parent 7dde109 commit 14c71db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)