Align member variables

Started by
0 comments, last by deffer 17 years, 8 months ago
How can you align member variables in a class in c++? I've tried __attribute__((align(64))), but it only seems to work if the variable is declared globally, instead of inside a class.
Advertisement
I'm guessing you're having problems with new'ed classes not being aligned properly.
More discussion on this topic in a previous thread.

This topic is closed to new replies.

Advertisement