Re: [eigen] Std Vector again |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Std Vector again
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Fri, 26 Jun 2009 22:54:20 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=bnCrV3HchfOMCdcnbhJRwvooElTCn18utvFnyE3i9/A=; b=xK5lGTWGOjo5FEu945QqywZgEkNMJcVf8jsztqCrt3XV7kPf/u4mLLjpHWNO7UiSri x9nJDhsCSTdFblS4Sa9CdAOJTYHljzwVRauXeauRRgdxgnKcJp9FpcVLjUPcG8eBrG4e a/RdJBQ8tcu0gx6sQNl1F5CcgzVqgWTYWRv9E=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=wZrK+9sTQ8Um5Eykx74NMFb/l5UTFS7ftZJBK7qQ2SNxuvCORmc7te1Jb4MmArDXns ++taKlIUKeWpb7UAfXJq7iz02RGFQwB4WjQP7X1FG0hneSLugh4Q0BEVQJ6Y68XVijBG dqq4a77sRivdj6F/cX038OupvEhmWDKIfBaG8=
2009/6/26 Patrick Mihelich <patrick.mihelich@xxxxxxxxx>:
> On Fri, Jun 26, 2009 at 1:00 PM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
> wrote:
>>
>> > AlignedVector<Vector4f>::type my_vec;
>>
>> I think you need a typename keyword here ;)
>>
>> Benoit
>
> No, only if T is a dependent type ;). That used to trip me up frequently.
>
> template<typename MatrixT>
> void foo()
> {
> typename AlignedVector<MatrixT>::type vec1;
> AlignedVector<Vector4f>::type vec2;
> }
Oh, oops!