Skip to content
Snippets Groups Projects
Commit 1a872912 authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Give ObstacleRestrictor an empty virtual destructor

Otherwise, non-default destructors in derived class are not called
properly when handling a derived class through a base pointer.
parent 32e48d69
Branches
No related tags found
No related merge requests found
......@@ -28,6 +28,8 @@ public:
const MultigridTransfer<DiscFuncType>& transfer,
const Dune::BitSetVector<blocksize>& critical) = 0;
virtual ~ObstacleRestrictor() = default;
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment