diff --git a/tests/test_class_sh_disowning.cpp b/tests/test_class_sh_disowning.cpp index 1c88bf071..81e17ac43 100644 --- a/tests/test_class_sh_disowning.cpp +++ b/tests/test_class_sh_disowning.cpp @@ -47,7 +47,7 @@ TEST_SUBMODULE(class_sh_disowning, m) { m.def("mixed", mixed); - m.def("overloaded", (int (*)(std::unique_ptr>, int)) & overloaded); - m.def("overloaded", (int (*)(std::unique_ptr>, int)) & overloaded); + m.def("overloaded", (int (*)(std::unique_ptr>, int)) &overloaded); + m.def("overloaded", (int (*)(std::unique_ptr>, int)) &overloaded); #endif // PYBIND11_SMART_HOLDER_ENABLED }