Skip to content

Fix non-virtual destructor in VirtualOrderingBase

Jö Fahlke requested to merge fix-nonvirtual-destructor-in-ordering into master

This fixes a clang (PACXX) warning:

/usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/ext/new_allocator.h:124:29: warning:
      destructor called on non-final
      'Dune::PDELab::LeafGridViewOrdering<Dune::PDELab::DirectLeafLocalOrdering<Dune::PDELab::LeafOrderingTag<Dune::PDELab::EmptyParams>,
      Dune::PoissonTest::QkLocalFiniteElementMap<Dune::GridView<Dune::UGGridLeafGridViewTraits<const
      Dune::UGGrid<2> > >, double, double, 2>,
      Dune::PDELab::PartitionViewEntitySet<Dune::GridView<Dune::UGGridLeafGridViewTraits<const
      Dune::UGGrid<2> > >, Dune::PartitionSet<31> >, Dune::PDELab::DOFIndex<unsigned long, 1, 2>,
      Dune::PDELab::MultiIndex<unsigned long, 1> > >' that has virtual functions but non-virtual
      destructor [-Wdelete-non-virtual-dtor]
        destroy(_Up* __p) { __p->~_Up(); }

Merge request reports

Loading