Test issue #2234 follow-up: overload_cast with ref-qualified member pointers. Covers: - overload_cast_impl::operator()(Return (Class::*)(Args...) &, false_type) - overload_cast_impl::operator()(Return (Class::*)(Args...) const &, true_type) - overload_cast_impl::operator()(Ret
()
| 619 | |
| 620 | |
| 621 | def test_ref_qualified_overload_cast(): |
| 622 | """Test issue #2234 follow-up: overload_cast with ref-qualified member pointers. |
| 623 | |
| 624 | Covers: |
| 625 | - overload_cast_impl::operator()(Return (Class::*)(Args...) &, false_type) |
| 626 | - overload_cast_impl::operator()(Return (Class::*)(Args...) const &, true_type) |
| 627 | - overload_cast_impl::operator()(Return (Class::*)(Args...) &&, false_type) |
| 628 | - overload_cast_impl::operator()(Return (Class::*)(Args...) const &&, true_type) |
| 629 | - overload_cast_impl::operator()(Return (Class::*)(Args...) & noexcept, false_type) |
| 630 | - overload_cast_impl::operator()(Return (Class::*)(Args...) const & noexcept, true_type) |
| 631 | - overload_cast_impl::operator()(Return (Class::*)(Args...) && noexcept, false_type) |
| 632 | - overload_cast_impl::operator()(Return (Class::*)(Args...) const && noexcept, true_type) |
| 633 | """ |
| 634 | obj = m.RefQualifiedOverloaded() |
| 635 | assert obj.method_lref(1) == "(int) &" |
| 636 | assert obj.method_const_lref(1) == "(int) const &" |
| 637 | assert obj.method_rref(1.0) == "(float) &&" |
| 638 | assert obj.method_const_rref(1.0) == "(float) const &&" |
| 639 | |
| 640 | |
| 641 | @pytest.mark.skipif( |
nothing calls this directly
no test coverage detected