We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a1edda commit 9ec1128Copy full SHA for 9ec1128
docs/advanced/functions.rst
@@ -120,7 +120,7 @@ targeted arguments can be passed through the :class:`cpp_function` constructor:
120
.. code-block:: cpp
121
122
class_<MyClass>(m, "MyClass")
123
- .def_property("data"
+ .def_property("data",
124
py::cpp_function(&MyClass::getData, py::return_value_policy::copy),
125
py::cpp_function(&MyClass::setData)
126
);
0 commit comments