[Dune] [#1004] Make VTKFunctionPtr a const-pointer

Dune flyspray at dune-project.org
Wed Dec 21 18:42:55 CET 2011


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Elias Pipping (pipping) 

Attached to Project - Dune
Summary - Make VTKFunctionPtr a const-pointer
Task Type - Feature Request
Category - File
Status - Unconfirmed
Assigned To - 
Operating System - Unspecified / All
Severity - Low
Priority - Normal
Reported Version - SVN (pre2.2)
Due in Version - Undecided
Due Date - Undecided
Details - 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.

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=1004

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list