first quick experiment adding yclass

parent 7caf5821
#include "pybind11_tests.h" #include "pybind11_tests.h"
#include <pybind11/yclass.h>
#include <memory> #include <memory>
...@@ -38,9 +39,12 @@ inline int cpp_pattern() { ...@@ -38,9 +39,12 @@ inline int cpp_pattern() {
TEST_SUBMODULE(unique_ptr_member, m) { TEST_SUBMODULE(unique_ptr_member, m) {
m.def("cpp_pattern", cpp_pattern); m.def("cpp_pattern", cpp_pattern);
py::class_<pointee>(m, "pointee") py::yclass<pointee>(m, "pointee")
#ifdef JUNK
.def(py::init<>()) .def(py::init<>())
.def("get_int", &pointee::get_int); .def("get_int", &pointee::get_int)
#endif
;
py::class_<ptr_owner>(m, "ptr_owner") py::class_<ptr_owner>(m, "ptr_owner")
#ifdef FEAT_UNIQUE_PTR_ARG #ifdef FEAT_UNIQUE_PTR_ARG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment