Skip to content

Commit b7c4fe9

Browse files
committed
Back out ForwardClassPtr (to be discussed separately). Tested locally with clang-tidy.
1 parent 8bc767d commit b7c4fe9

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

tests/test_class.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ void bind_empty0(py::module_ &m) {
5555

5656
namespace pr5396_forward_declared_class {
5757
class ForwardClass;
58-
using ForwardClassPtr = class ForwardClass *;
5958
class Args : public py::args {};
6059
} // namespace pr5396_forward_declared_class
6160

@@ -65,10 +64,6 @@ static_assert(!py::detail::is_same_or_base_of<
6564
py::args,
6665
test_class::pr5396_forward_declared_class::ForwardClass>::value,
6766
"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.");
7267
static_assert(py::detail::is_same_or_base_of<py::args, py::args>::value, "py::args is py::args.");
7368
static_assert(
7469
py::detail::is_same_or_base_of<py::args,
@@ -575,18 +570,8 @@ TEST_SUBMODULE(class_, m) {
575570
});
576571

577572
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");
581573
}
582574

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-
590575
template <int N>
591576
class BreaksBase {
592577
public:

0 commit comments

Comments
 (0)