mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-12 09:17:42 +00:00
added caster for std::reference_wrapper (fixes #171)
This commit is contained in:
@@ -5,6 +5,7 @@ sys.path.append('.')
|
||||
|
||||
from example.issues import print_cchar, print_char
|
||||
from example.issues import DispatchIssue, dispatch_issue_go
|
||||
from example.issues import return_vec_of_reference_wrapper
|
||||
|
||||
print_cchar("const char *")
|
||||
print_char('c')
|
||||
@@ -26,3 +27,5 @@ class PyClass2(DispatchIssue):
|
||||
|
||||
b = PyClass2()
|
||||
dispatch_issue_go(b)
|
||||
|
||||
print(return_vec_of_reference_wrapper())
|
||||
|
||||
Reference in New Issue
Block a user