mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
Merge pull request #117 from jmabille/overload
Python overloading of virtual functions defined in class template
This commit is contained in:
commit
00d584da97
@ -1047,7 +1047,7 @@ inline function get_overload(const void *this_ptr, const char *name) {
|
||||
pybind11::gil_scoped_acquire gil; \
|
||||
pybind11::function overload = pybind11::get_overload(this, #name); \
|
||||
if (overload) \
|
||||
return overload.call(__VA_ARGS__).cast<ret_type>(); }
|
||||
return overload.call(__VA_ARGS__).template cast<ret_type>(); }
|
||||
|
||||
#define PYBIND11_OVERLOAD(ret_type, class_name, name, ...) \
|
||||
PYBIND11_OVERLOAD_INT(ret_type, class_name, name, __VA_ARGS__) \
|
||||
|
Loading…
Reference in New Issue
Block a user