diff --git a/include/pybind11/detail/init.h b/include/pybind11/detail/init.h index 56e0a56ab..a1083f845 100644 --- a/include/pybind11/detail/init.h +++ b/include/pybind11/detail/init.h @@ -367,8 +367,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)