We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6186cc commit a4bfaa8Copy full SHA for a4bfaa8
include/eigenpy/deprecation-policy.hpp
@@ -19,6 +19,8 @@ constexpr PyObject *deprecationTypeToPyObj(DeprecationType dep) {
19
return PyExc_DeprecationWarning;
20
case DeprecationType::FUTURE:
21
return PyExc_FutureWarning;
22
+ default: // The switch handles all cases explicitly, this should never be triggered.
23
+ throw std::invalid_argument("Undefined DeprecationType - this should never be triggered.");
24
}
25
26
0 commit comments