Re: [eigen] Test for a non-compiling cast |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Test for a non-compiling cast
- From: "Gael Guennebaud" <gael.guennebaud@xxxxxxxxx>
- Date: Sat, 27 Dec 2008 16:42:57 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Mw50vAu8cFwoZt+lKAiy2XfheeJrZFzSKbwhccyXXYE=; b=VyGxqHGeAsfc8WGK+NCMCv18BmEnOtYHIjME6bsfH16Eas9AOJ9LUvFCqbQNWalhG6 ytRG6GiF7OyugR4qDvqSwHMyEk2CeLi3E6i8D7qiWqtEO1TewDV7KmsS9gWLUjAHD62I L0pFCB8DddvINA9A7RG3nphU5xJhMTu35nbys=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=jFjIBOoQORjVbNBGLod5DBXzGNDWg4PUVKQx533aigUpj3bF+fU5E7cl4AyFfvjHSS hy4JPtb3rGBphEM0GFSdglfmyAVCGK/sfwIy4Ae6uS4S0YkaopqI6zBjm0G9Gian7UIC k7sR1kydBPB/1ReRLC3FlPmsKvC/SsTesE1Mc=
well, you need to add the "template" disambiguator only for template
functions, so here only in front of cast:
(*b).block(0, 0, 3, 1) = a.block(0,0, 3, 1).template cast<Complex>();
gael, who eventually got his Internet connection at home :)
On Tue, Dec 23, 2008 at 2:08 PM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote:
> It's not a problem with Eigen, it's just strangeness of the C++ language.
>
> The line 24 needs template keywords like this,
> (*b).block(0, 0, 3, 1) = a.template block(0,0, 3, 1).template cast<Complex>();
>
> Cheers,
> Benoit
>
> 2008/12/23 Ricard Marxer Piñón <email@xxxxxxxxxxxxxxxx>:
>> Hi there,
>>
>> I have problems with revision r900516 (I'm guessing since r900396).
>>
>> I attach a test file.
>>
>> --
>> ricard
>> http://www.ricardmarxer.com
>> http://www.caligraft.com
>
> ---
>
>