We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7eefae commit 2c1e34eCopy full SHA for 2c1e34e
1 file changed
test/t-ref_ptr-11.cpp
@@ -72,6 +72,7 @@ TEST_CASE("ref_ptr") {
72
73
struct animal {
74
animal(std::string n) : name(std::move(n)) {}
75
+ virtual ~animal() = default;
76
std::string name;
77
virtual std::string speak() const = 0;
78
};
@@ -105,4 +106,4 @@ TEST_CASE("unsafe") {
105
106
auto sp2 = rp._as_shared_ptr_unsafe();
107
CHECK(sp == sp2);
108
CHECK(rp.use_count() == 3);
-}
109
+}
0 commit comments