Skip to content

Commit

Permalink
core: Add inline to deprecationTypeToPyObj definition to avoid linkin…
Browse files Browse the repository at this point in the history
…g error
  • Loading branch information
jorisv committed Oct 26, 2024
1 parent 7dde109 commit 14c71db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/eigenpy/deprecation-policy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 14c71db

Please sign in to comment.