Re: [eigen] Std Vector again

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


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!



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/