mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 16:37:13 +00:00
Automatic clang-format.
This commit is contained in:
parent
a428f5755d
commit
fa5ffc3d02
@ -34,7 +34,8 @@ using FooSmHld = Foo<1>;
|
|||||||
} // namespace
|
} // namespace
|
||||||
} // namespace pybind11_tests
|
} // namespace pybind11_tests
|
||||||
|
|
||||||
PYBIND11_TYPE_CASTER_BASE_HOLDER(pybind11_tests::FooShPtr, std::shared_ptr<pybind11_tests::FooShPtr>)
|
PYBIND11_TYPE_CASTER_BASE_HOLDER(pybind11_tests::FooShPtr,
|
||||||
|
std::shared_ptr<pybind11_tests::FooShPtr>)
|
||||||
PYBIND11_SMART_HOLDER_TYPE_CASTERS(pybind11_tests::FooSmHld)
|
PYBIND11_SMART_HOLDER_TYPE_CASTERS(pybind11_tests::FooSmHld)
|
||||||
|
|
||||||
namespace pybind11_tests {
|
namespace pybind11_tests {
|
||||||
@ -45,8 +46,7 @@ TEST_SUBMODULE(class_sh_shared_ptr_copy_move, m) {
|
|||||||
|
|
||||||
py::class_<FooShPtr, std::shared_ptr<FooShPtr>>(m, "FooShPtr")
|
py::class_<FooShPtr, std::shared_ptr<FooShPtr>>(m, "FooShPtr")
|
||||||
.def("get_history", &FooShPtr::get_history);
|
.def("get_history", &FooShPtr::get_history);
|
||||||
py::classh<FooSmHld>(m, "FooSmHld")
|
py::classh<FooSmHld>(m, "FooSmHld").def("get_history", &FooSmHld::get_history);
|
||||||
.def("get_history", &FooSmHld::get_history);
|
|
||||||
|
|
||||||
m.def("test_ShPtr_copy", []() {
|
m.def("test_ShPtr_copy", []() {
|
||||||
auto o = std::make_shared<FooShPtr>("copy");
|
auto o = std::make_shared<FooShPtr>("copy");
|
||||||
|
Loading…
Reference in New Issue
Block a user