mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-08 01:41:59 +00:00
Minimal reproducer for one of the test_factory_constructors.cpp build errors.
This commit is contained in:
parent
bcc3b87b8d
commit
33b0b387f1
@ -13,5 +13,7 @@ TEST_SUBMODULE(wip, m) {
|
|||||||
|
|
||||||
using namespace pybind11_tests::wip;
|
using namespace pybind11_tests::wip;
|
||||||
|
|
||||||
py::class_<SomeType>(m, "SomeType").def(py::init<>());
|
py::class_<SomeType>(m, "SomeType").def(py::init([]() {
|
||||||
|
return std::unique_ptr<SomeType>(new SomeType);
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user