[Dune] [Dune-Commit] dune-istl r1495 - trunk/dune/istl

Markus Blatt Markus.Blatt at iwr.uni-heidelberg.de
Tue Aug 30 12:07:30 CEST 2011


Hi Oliver,

Is there really a const missing. Up to now I always assumed that it
should be

Iterator beforebegin();
ConstIterator beforebegin() const;

I wonder whether your changes compile.

Cheers, 

Markus
On Tue, Aug 30, 2011 at 11:03:50AM +0200, sander at dune-project.org wrote:
> Author: sander
> Date: 2011-08-30 11:03:49 +0200 (Tue, 30 Aug 2011)
> New Revision: 1495
> 
> Modified:
>    trunk/dune/istl/vbvector.hh
> Log:
> add missing const
> 
> Modified: trunk/dune/istl/vbvector.hh
> ===================================================================
> --- trunk/dune/istl/vbvector.hh	2011-08-30 09:03:29 UTC (rev 1494)
> +++ trunk/dune/istl/vbvector.hh	2011-08-30 09:03:49 UTC (rev 1495)
> @@ -636,7 +636,7 @@
>  
>          //! @returns an iterator that is positioned before
>          //! the first entry of the vector.
> -	Iterator beforeBegin ()
> +	Iterator beforeBegin () const
>  	{
>  	  return Iterator(block,-1);
>  	}
> 
> 
> _______________________________________________
> Dune-Commit mailing list
> Dune-Commit at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-commit
> 

-- 
Markus Blatt, Interdisciplinary Center for Scientific Computing,
University Heidelberg, Im Neuenheimer Feld 368, D-69120 Heidelberg
Tel: +49 (0) 6221 548881 Fax: +49 (0) 6221 548884

'Mathematics knows no races or geographic boundaries; for
mathematics, the cultural world is one country' - David Hilbert




More information about the Dune mailing list