| 64 | // T* must NOT be a trampoline class! |
| 65 | template <typename T> |
| 66 | py::function getOverride(const T* self, std::string const& overloadName, bool showWarning = true) |
| 67 | { |
| 68 | py::function overload = py::get_override(self, overloadName.c_str()); |
| 69 | if (!overload && showWarning) |
| 70 | { |
| 71 | std::cerr << "Method: " << overloadName |
| 72 | << " was not overriden. Please provide an implementation for this method."; |
| 73 | } |
| 74 | return overload; |
| 75 | } |
| 76 | |
| 77 | // Deprecation helpers |
| 78 | void issueDeprecationWarning(const char* useInstead); |
no test coverage detected