#1004 Make VTKFunctionPtr a const-pointer
Metadata
Property | Value |
---|---|
Reported by | Elias Pipping (elias.pipping@fu-berlin.de) |
Reported at | Dec 21, 2011 17:42 |
Type | Feature Request |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Last edited at | Jan 27, 2012 09:22 |
Closed by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Closed at | Jan 27, 2012 09:22 |
Closed in version | Unknown |
Resolution | Implemented |
Comment |
Description
The class VTKWriter from dune/grid/io/file/vtk/vtkwriter.hh exposes a function
void addVertexData (const VTKFunctionPtr & p)
where VTKFunctionPtr is defined as
typedef shared_ptr< VTKFunction > VTKFunctionPtr;
This requires the VTKFunction that the VTKFunctionPtr points to to be writable, apparently for no reason. Replacing the typedef with
typedef shared_ptr< VTKFunction const > VTKFunctionPtr;
would allow pointers to constant functions to be passed.