mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-27 07:32:02 +00:00
Merge branch 'pybind:master' into master
This commit is contained in:
commit
196a544873
@ -482,7 +482,7 @@ The binding code for this example looks as follows:
|
|||||||
.value("Cat", Pet::Kind::Cat)
|
.value("Cat", Pet::Kind::Cat)
|
||||||
.export_values();
|
.export_values();
|
||||||
|
|
||||||
py::class_<Pet::Attributes> attributes(pet, "Attributes")
|
py::class_<Pet::Attributes>(pet, "Attributes")
|
||||||
.def(py::init<>())
|
.def(py::init<>())
|
||||||
.def_readwrite("age", &Pet::Attributes::age);
|
.def_readwrite("age", &Pet::Attributes::age);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user