Cast to raw pointer is deprecated
Using foamgrid with dune master yields the following deprecation warning.
dune-foamgrid/dune/foamgrid/dgffoam.cc:68:11: warning: ‘Dune::ToUniquePtr<T>::operator Dune::ToUniquePtr<T>::pointer() [with T = Dune::FoamGrid<1, 3>; Dune::ToUniquePtr<T>::pointer = Dune::FoamGrid<1, 3>*]’ is deprecated: "Cast to raw pointer is deprecated. Use std::unique_ptr or std::shared_ptr instead."
grid_ = factory_.createGrid();
I tried to look into this but I somehow got lost. I guess grid_
shall remain a raw pointer?
Edited by Kilian Weishaupt