GeezerVison is showing github.com — Unwrap back_reference in get_pytype() · boostorg/python@0102b31
File tree
Expand file treeCollapse file tree
Open diff view settings
include/boost/python/converter
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: include/boost/python/converter/pytype_function.hpp +7-1Lines changed: 7 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
9 | 9 | # include <boost/python/converter/registered.hpp> |
10 | 10 | # include <boost/python/detail/unwind_type.hpp> |
11 | 11 | # include <boost/python/detail/type_traits.hpp> |
12 | | - |
| 12 | +# include <boost/python/back_reference.hpp> |
13 | 13 |
|
14 | 14 | namespace boost { namespace python { |
15 | 15 |
|
@@ -46,6 +46,12 @@ inline python::type_info unwind_type_id_(boost::type<T>* = 0, mpl::false_ * =0) |
46 | 46 | return boost::python::detail::unwind_type<unwind_type_id_helper, T> (); |
47 | 47 | } |
48 | 48 |
|
| 49 | +template <class T> |
| 50 | +inline python::type_info unwind_type_id_(boost::type<back_reference<T> >* = 0, mpl::false_ * =0) |
| 51 | +{ |
| 52 | + return boost::python::detail::unwind_type<unwind_type_id_helper, T> (); |
| 53 | +} |
| 54 | + |
49 | 55 | inline python::type_info unwind_type_id_(boost::type<void>* = 0, mpl::true_* =0) |
50 | 56 | { |
51 | 57 | return type_id<void>(); |
|
Collapse file
Copy file name to clipboardExpand all lines: test/map_indexing_suite.py +7Lines changed: 7 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
214 | 214 | ... i.data() |
215 | 215 | 4 |
216 | 216 |
|
| 217 | +##################################################################### |
| 218 | +# Test signature... |
| 219 | +##################################################################### |
| 220 | +
|
| 221 | +>>> AMap.__iter__.__doc__.strip().split("\\n")[0] |
| 222 | +'__iter__( (AMap)arg1) -> __main__.iterator :' |
| 223 | +
|
217 | 224 | ##################################################################### |
218 | 225 | # END.... |
219 | 226 | ##################################################################### |
|