[Dune] Fwd: Re: [Dune-Commit] dune-common r6219 - trunk/dune/common

Martin Nolte nolte at mathematik.uni-freiburg.de
Tue Nov 2 09:00:17 CET 2010


Damn, again the reply did not go to the mailing list. Is there a way of fixing 
this?

Best, Martin

-------- Original Message --------
Subject: Re: [Dune] [Dune-Commit] dune-common r6219 - trunk/dune/common
Date: Tue, 02 Nov 2010 08:58:56 +0100
From: Martin Nolte <nolte at mathematik.uni-freiburg.de>
To: Markus Blatt <Markus.Blatt at iwr.uni-heidelberg.de>

Hi Markus,

good point, but at least it should compile better than the assignment because
the constructor is called explicitly. Acutally, it didn't compile for me with
a multiprecision field type.

I guess the correct statement would be
   value_type result( field_type( 0 ) );
Maybe one the you experts could have a look at the issue, again.

Best,

Martin

On 11/01/2010 10:46 PM, Markus Blatt wrote:
> Hey,
>
> On Sun, Oct 31, 2010 at 08:41:37PM +0100, mnolte at dune-project.org wrote:
>> Author: mnolte
>> Date: 2010-10-31 20:41:37 +0100 (Sun, 31 Oct 2010)
>> New Revision: 6219
>>
>> Modified:
>>     trunk/dune/common/densevector.hh
>> Log:
>> don't use implicit cast from int to field_type
>>
>>
>> Modified: trunk/dune/common/densevector.hh
>> ===================================================================
>> --- trunk/dune/common/densevector.hh	2010-10-30 20:08:40 UTC (rev 6218)
>> +++ trunk/dune/common/densevector.hh	2010-10-31 19:41:37 UTC (rev 6219)
>> @@ -447,7 +447,7 @@
>>       value_type operator* (const DenseVector&  y) const
>>   	{
>>         assert(y.size() == size());
>> -      value_type result = 0;
>> +      value_type result( 0 );
>
>
> Just wondering: Would this compile if value_type is e.g. a
> FieldMatrix?
>
> Cheers,
>
> Markus
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune

-- 
Martin Nolte <nolte at mathematik.uni-freiburg.de>

Universität Freiburg                                   phone: +49-761-203-5642
Abteilung für angewandte Mathematik                    fax:   +49-761-203-5632
Hermann-Herder-Straße 10
79104 Freiburg, Germany




More information about the Dune mailing list