Support for std::unique_ptr parameters
Bug #1372020 reported by
Kevin Stenerson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyBindGen |
New
|
Undecided
|
Unassigned |
Bug Description
I'd like support for std::unique_ptr<T> parameters (and probably eventually retvals, but will get to that later).
A unique pointer can act like a normal CppClassPtrPara
- It shouldn't be used with RefCountedMemor
- It should behave like transfer_ownership is always true
- It should have a pointer_name like 'std::unique_ptr< T_full_name >`
- It needs to be passed as an argument with `move(value_ptr)` instead of just `value_ptr`
Hopefully those are all of the important cases.
I've attached a patch that I believe implements it correctly.
Unfourtenately, no unittests or examples this time >_<.
To post a comment you must log in.