From 33b0b387f1588e63b2d399958a71bcd152e95067 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Sat, 29 Jun 2024 16:13:47 -0700 Subject: [PATCH] Minimal reproducer for one of the test_factory_constructors.cpp build errors. --- tests/test_wip.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_wip.cpp b/tests/test_wip.cpp index 04891a55e..a8e119c94 100644 --- a/tests/test_wip.cpp +++ b/tests/test_wip.cpp @@ -13,5 +13,7 @@ TEST_SUBMODULE(wip, m) { using namespace pybind11_tests::wip; - py::class_(m, "SomeType").def(py::init<>()); + py::class_(m, "SomeType").def(py::init([]() { + return std::unique_ptr(new SomeType); + })); }