@@ -55,7 +55,6 @@ void bind_empty0(py::module_ &m) {
55
55
56
56
namespace pr5396_forward_declared_class {
57
57
class ForwardClass ;
58
- using ForwardClassPtr = class ForwardClass *;
59
58
class Args : public py ::args {};
60
59
} // namespace pr5396_forward_declared_class
61
60
@@ -65,10 +64,6 @@ static_assert(!py::detail::is_same_or_base_of<
65
64
py::args,
66
65
test_class::pr5396_forward_declared_class::ForwardClass>::value,
67
66
" ForwardClass is not the same or base of py::args." );
68
- static_assert (!py::detail::is_same_or_base_of<
69
- py::args,
70
- test_class::pr5396_forward_declared_class::ForwardClassPtr>::value,
71
- " ForwardClassPtr is not the same or base of py::args." );
72
67
static_assert (py::detail::is_same_or_base_of<py::args, py::args>::value, " py::args is py::args." );
73
68
static_assert (
74
69
py::detail::is_same_or_base_of<py::args,
@@ -575,18 +570,8 @@ TEST_SUBMODULE(class_, m) {
575
570
});
576
571
577
572
test_class::pr4220_tripped_over_this::bind_empty0 (m);
578
-
579
- // Test constructing a pybind11 class around a pointer to an incomplete type. #5396
580
- py::class_<test_class::pr5396_forward_declared_class::ForwardClassPtr>(m, " ForwardClassPtr" );
581
573
}
582
574
583
- namespace test_class {
584
- namespace pr5396_forward_declared_class {
585
- // Define the forward declared class after it is used.
586
- class ForwardClass {};
587
- } // namespace pr5396_forward_declared_class
588
- } // namespace test_class
589
-
590
575
template <int N>
591
576
class BreaksBase {
592
577
public:
0 commit comments