From 92345b4b64cfb6d2d38620dc1c8ac0210d9c105f Mon Sep 17 00:00:00 2001 From: Alexander Holler Date: Sat, 15 Nov 2014 13:45:14 +0100 Subject: [PATCH] [persistent-data/space_map.h] Make destructor for space_map_detail::damage public The compiler is unable to create a default desctructor for the derived class missing_counts if the virtual destructor for the class damage is private. This fixes compilation bugs with CXXFLAGS=-std=gnu++11 together with gcc 4.8.3 and boost 1.55. --- persistent-data/space_map.h | 1 + 1 file changed, 1 insertion(+) diff --git a/persistent-data/space_map.h b/persistent-data/space_map.h index 5395c90..823b4ba 100644 --- a/persistent-data/space_map.h +++ b/persistent-data/space_map.h @@ -119,6 +119,7 @@ namespace persistent_data { namespace space_map_detail { class damage { + public: virtual ~damage() {} };