Re: [eigen] strange sizeof on windows

[ Thread Index | Date Index | More Archives ]

2009/1/5 FMDSPAM <fmdspam@xxxxxxxxx>:
> Do you know what is about the ?class member?
> a) Eigen::MatrixBase... (Size is 1)
> and b) Eigen::ei:_matrix_with_aligned... (Sieze is 1 too)
> If this two ?class  member?  are regular, then the minimal Size of m should
> be 1+1+sizeof(float) = 6, correct?
> With some alignment-magic maybe the array-part starts later and sizeof(m)=8.
> (0xFD4C - 0xFD48 = 4)
> So, the question is: Are a) and b) regular member variables.

No, they are no member variables, they are base classes. They are
empty. Since the sizeof of a class is at least 1, their sizeof is 1.
But inheriting an empty class should nevertheless not increase the

Not sure though if this is defined in the standard or just some common
sense that msvc is missing.
Note sure either what the workaround is.



Mail converted by MHonArc 2.6.19+