Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
25dd4789
Commit
25dd4789
authored
Feb 26, 2016
by
Johan Mabille
Committed by
jmabille
Feb 28, 2016
Browse files
Python overloading of virtual functions defined in class template
parent
b3ef54a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/pybind11/pybind11.h
include/pybind11/pybind11.h
+1
-1
No files found.
include/pybind11/pybind11.h
View file @
25dd4789
...
@@ -1047,7 +1047,7 @@ inline function get_overload(const void *this_ptr, const char *name) {
...
@@ -1047,7 +1047,7 @@ inline function get_overload(const void *this_ptr, const char *name) {
pybind11::gil_scoped_acquire gil; \
pybind11::gil_scoped_acquire gil; \
pybind11::function overload = pybind11::get_overload(this, #name); \
pybind11::function overload = pybind11::get_overload(this, #name); \
if (overload) \
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, ...) \
#define PYBIND11_OVERLOAD(ret_type, class_name, name, ...) \
PYBIND11_OVERLOAD_INT(ret_type, class_name, name, __VA_ARGS__) \
PYBIND11_OVERLOAD_INT(ret_type, class_name, name, __VA_ARGS__) \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment