Re: [eigen] Std Vector again

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


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;
}

Patrick


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