Minimal reproducer for one of the test_factory_constructors.cpp build errors.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2024-06-29 16:13:47 -07:00
parent bcc3b87b8d
commit 33b0b387f1

View File

@ -13,5 +13,7 @@ TEST_SUBMODULE(wip, m) {
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);
}));
}