From 4b6ff43c4134678e6f0321731121273c74f37076 Mon Sep 17 00:00:00 2001 From: Dirk Faust Date: Mon, 8 Apr 2019 09:46:46 +0200 Subject: [PATCH] Make object virtual --- include/turtle/object.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/turtle/object.hpp b/include/turtle/object.hpp index d201757..1bfff75 100644 --- a/include/turtle/object.hpp +++ b/include/turtle/object.hpp @@ -51,7 +51,7 @@ namespace detail : impl_( boost::make_shared< detail::object_impl >() ) {} protected: - ~object() + virtual ~object() {} public: boost::shared_ptr< detail::object_impl > impl_;