@@ -258,15 +258,15 @@ TEST_SUBMODULE(methods_and_attributes, m) {
258258 // Use both the traditional static_cast method and the C++11 compatible overload_cast_
259259 .def (" overloaded" , overload_cast_<>()(&ExampleMandA::overloaded))
260260 .def (" overloaded" , overload_cast_<int >()(&ExampleMandA::overloaded))
261- .def (" overloaded" , overload_cast_<int , float >()(&ExampleMandA::overloaded))
262- .def (" overloaded" , static_cast <py::str (ExampleMandA::*)(int , int )>(&ExampleMandA::overloaded))
263- .def (" overloaded" , static_cast <py::str (ExampleMandA::*)(float , int )>(&ExampleMandA::overloaded))
261+ .def (" overloaded" , overload_cast_<int , int >()(&ExampleMandA::overloaded))
262+ .def (" overloaded" , static_cast <py::str (ExampleMandA::*)(int , float )>(&ExampleMandA::overloaded))
263+ .def (" overloaded" , static_cast <py::str (ExampleMandA::*)(float , int )>(&ExampleMandA::overloaded))
264264 .def (" overloaded" , static_cast <py::str (ExampleMandA::*)(float , float )>(&ExampleMandA::overloaded))
265265 .def (" overloaded_float" , overload_cast_<float , float >()(&ExampleMandA::overloaded))
266266 .def (" overloaded_const" , overload_cast_<int >()(&ExampleMandA::overloaded, py::const_))
267- .def (" overloaded_const" , overload_cast_<int , float >()(&ExampleMandA::overloaded, py::const_))
268- .def (" overloaded_const" , static_cast <py::str (ExampleMandA::*)(int , int ) const >(&ExampleMandA::overloaded))
269- .def (" overloaded_const" , static_cast <py::str (ExampleMandA::*)(float , int ) const >(&ExampleMandA::overloaded))
267+ .def (" overloaded_const" , overload_cast_<int , int >()(&ExampleMandA::overloaded, py::const_))
268+ .def (" overloaded_const" , static_cast <py::str (ExampleMandA::*)(int , float ) const >(&ExampleMandA::overloaded))
269+ .def (" overloaded_const" , static_cast <py::str (ExampleMandA::*)(float , int ) const >(&ExampleMandA::overloaded))
270270 .def (" overloaded_const" , static_cast <py::str (ExampleMandA::*)(float , float ) const >(&ExampleMandA::overloaded))
271271#endif
272272 // test_no_mixed_overloads
0 commit comments