mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-14 09:34:46 +00:00
Fix class name in overload failure message
This commit is contained in:
parent
e88656ab45
commit
9f41c8eade
@ -1963,7 +1963,7 @@ template <class T> function get_overload(const T *this_ptr, const char *name) {
|
|||||||
|
|
||||||
#define PYBIND11_OVERLOAD_PURE_NAME(ret_type, cname, name, fn, ...) \
|
#define PYBIND11_OVERLOAD_PURE_NAME(ret_type, cname, name, fn, ...) \
|
||||||
PYBIND11_OVERLOAD_INT(PYBIND11_TYPE(ret_type), PYBIND11_TYPE(cname), name, __VA_ARGS__) \
|
PYBIND11_OVERLOAD_INT(PYBIND11_TYPE(ret_type), PYBIND11_TYPE(cname), name, __VA_ARGS__) \
|
||||||
pybind11::pybind11_fail("Tried to call pure virtual function \"" #cname "::" name "\"");
|
pybind11::pybind11_fail("Tried to call pure virtual function \"" PYBIND11_STRINGIFY(cname) "::" name "\"");
|
||||||
|
|
||||||
#define PYBIND11_OVERLOAD(ret_type, cname, fn, ...) \
|
#define PYBIND11_OVERLOAD(ret_type, cname, fn, ...) \
|
||||||
PYBIND11_OVERLOAD_NAME(PYBIND11_TYPE(ret_type), PYBIND11_TYPE(cname), #fn, fn, __VA_ARGS__)
|
PYBIND11_OVERLOAD_NAME(PYBIND11_TYPE(ret_type), PYBIND11_TYPE(cname), #fn, fn, __VA_ARGS__)
|
||||||
|
Loading…
Reference in New Issue
Block a user