mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-07 17:32:00 +00:00
minor formatting fix
This commit is contained in:
parent
d7e208c740
commit
fb0e2e5dac
@ -126,11 +126,11 @@ void init_issues(py::module &m) {
|
|||||||
|
|
||||||
auto call_f = [](A *a) { a->f(); };
|
auto call_f = [](A *a) { a->f(); };
|
||||||
|
|
||||||
pybind11::class_<A, std::unique_ptr<A>, PyA>(m2, "A")
|
pybind11::class_<A, std::unique_ptr<A>, PyA>(m2, "A")
|
||||||
.def(py::init<>())
|
.def(py::init<>())
|
||||||
.def("f", &A::f);
|
.def("f", &A::f);
|
||||||
|
|
||||||
m2.def("call_f", call_f);
|
m2.def("call_f", call_f);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
py::class_<Placeholder>(m2, "Placeholder");
|
py::class_<Placeholder>(m2, "Placeholder");
|
||||||
|
Loading…
Reference in New Issue
Block a user