Re: [eigen] Alignment issues

[ Thread Index | Date Index | More Archives ]

On 13.02.2014 14:42, Nicola Gigante wrote:
In fact, code that you warn the user about in the documentation seems to actually work in the same way:
class B {
     char c;
     Vector4f a;

With the above, could you try:

#include <vector>
#include <iostream>

int main() {
	B* b = new B;
	B* b_arr = new B[10];
	std::vector<B> b_vec(10);

	std::cout << b << "\n" << b_arr << "\n" << << std::endl;

These are basically the things that used to get wrong. Maybe those have been fixed by now, but they all fail on my gcc4.7 and clang3.1 on 32bit Linux. gcc does not even like the alignas(16) syntax (clang accepts it, but it does not influence the outcome).


Dipl.-Inf., Dipl.-Math. Christoph Hertzberg
Cartesium 0.049
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen

Tel: +49 (421) 218-64252

Mail converted by MHonArc 2.6.19+