Skip to content

Commit 2692820

Browse files
committed
Switch order in c++11 only section
Signed-off-by: Michael Carlstrom <[email protected]>
1 parent a0fb6dc commit 2692820

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_methods_and_attributes.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)