From 1ce554b2a85dfcdb4e7c76c9beaf7086ca5ad954 Mon Sep 17 00:00:00 2001 From: Thorsten Hater <24411438+thorstenhater@users.noreply.github.com> Date: Tue, 25 Oct 2022 08:22:03 +0200 Subject: [PATCH] Add virtual dtors (#2000) Add missing virtual destructors to some classes. Removes warnings and ensures correct behaviour. --- arbor/include/arbor/recipe.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arbor/include/arbor/recipe.hpp b/arbor/include/arbor/recipe.hpp index bf17317e..1f116b97 100644 --- a/arbor/include/arbor/recipe.hpp +++ b/arbor/include/arbor/recipe.hpp @@ -65,24 +65,28 @@ struct ARB_ARBOR_API has_gap_junctions { virtual std::vector<gap_junction_connection> gap_junctions_on(cell_gid_type) const { return {}; } + virtual ~has_gap_junctions() {} }; struct ARB_ARBOR_API has_synapses { virtual std::vector<cell_connection> connections_on(cell_gid_type) const { return {}; } + virtual ~has_synapses() {} }; struct ARB_ARBOR_API has_probes { virtual std::vector<probe_info> get_probes(cell_gid_type gid) const { return {}; } + virtual ~has_probes() {} }; struct ARB_ARBOR_API has_generators { virtual std::vector<event_generator> event_generators(cell_gid_type) const { return {}; } + virtual ~has_generators() {} }; // Toppings allow updating a simulation -- GitLab