Merge lp:~bcatanzaro-w/pybindgen/shared_ptr into lp:~gjc/pybindgen/trunk
Proposed by
Bryan Catanzaro
Status: | Merged |
---|---|
Merged at revision: | 882 |
Proposed branch: | lp:~bcatanzaro-w/pybindgen/shared_ptr |
Merge into: | lp:~gjc/pybindgen/trunk |
Diff against target: |
252 lines (+192/-3) 6 files modified
examples/std_shared_ptr/modulegen.py (+47/-0) examples/std_shared_ptr/sp.cc (+16/-0) examples/std_shared_ptr/sp.h (+36/-0) examples/std_shared_ptr/sp_test.py (+23/-0) examples/std_shared_ptr/wscript (+22/-0) pybindgen/cppclass.py (+48/-3) |
To merge this branch: | bzr merge lp:~bcatanzaro-w/pybindgen/shared_ptr |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gustavo Carneiro | Approve | ||
Review via email: mp+232644@code.launchpad.net |
Description of the change
Adds a memory policy for C++11's std::shared_ptr.
I've added a test to the examples directory, but waf isn't working on my system correctly and I don't have time to figure out why not, so I believe the wscript is likely to fail: to compile this code, one needs to enable C++11, which can require adding some compiler flags (such as -std=c++11 for g++).
To post a comment you must log in.
This was merged. Thank you!