diff --git a/include/pybind11/detail/init.h b/include/pybind11/detail/init.h index b7f8d5a52..102b37cab 100644 --- a/include/pybind11/detail/init.h +++ b/include/pybind11/detail/init.h @@ -370,8 +370,15 @@ template ` = `void_type()`, which the dual-factory +// specialization can also decompose as `AReturn(AArgs...)` with `AReturn=void_type` +// and `AArgs={}`. template -struct factory { +struct factory { remove_reference_t class_factory; // NOLINTNEXTLINE(google-explicit-constructor)