[Dune] [Dune-Commit] dune-istl r1495 - trunk/dune/istl
Oliver Sander
sander at mi.fu-berlin.de
Tue Aug 30 12:23:48 CEST 2011
Hi Markus!
I added this const specifically to fix a compile-time error in my
code. I don't use vbvector directly though, but only via the Matrix
class. My code compiles, but I think you're correct anyways: there
are more things to fix. I plan to have a look at that later.
best,
Oliver
Am 30.08.2011 12:07, schrieb Markus Blatt:
> 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
>>
>
More information about the Dune
mailing list