We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce9d6e2 commit e763f04Copy full SHA for e763f04
tests/test_virtual_functions.cpp
@@ -17,7 +17,7 @@ class ExampleVirt {
17
ExampleVirt(int state) : state(state) { print_created(this, state); }
18
ExampleVirt(const ExampleVirt &e) : state(e.state) { print_copy_created(this); }
19
ExampleVirt(ExampleVirt &&e) : state(e.state) { print_move_created(this); e.state = 0; }
20
- ~ExampleVirt() { print_destroyed(this); }
+ virtual ~ExampleVirt() { print_destroyed(this); }
21
22
virtual int run(int value) {
23
py::print("Original implementation of "
0 commit comments