Skip to content

Commit 487ae64

Browse files
committed
update to pybind11 v2.4.3
Previous dependency was some mid-2017 git snapshot.
1 parent 252b287 commit 487ae64

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

lib/pybind11

Submodule pybind11 updated 179 files

src/python_cpp_example/bindings.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
namespace py = pybind11;
55

6-
PYBIND11_PLUGIN(python_cpp_example) {
7-
py::module m("python_cpp_example", R"doc(
6+
PYBIND11_MODULE(python_cpp_example, m) {
7+
m.doc() = R"doc(
88
Python module
99
-----------------------
1010
.. currentmodule:: python_cpp_example
@@ -13,7 +13,7 @@ PYBIND11_PLUGIN(python_cpp_example) {
1313
1414
add
1515
subtract
16-
)doc");
16+
)doc";
1717

1818
m.def("add", &add, R"doc(
1919
Add two numbers
@@ -26,6 +26,4 @@ PYBIND11_PLUGIN(python_cpp_example) {
2626
2727
Some other information about the subtract function.
2828
)doc");
29-
30-
return m.ptr();
31-
}
29+
}

0 commit comments

Comments
 (0)