Class alignment optimization

Started by
3 comments, last by adol 20 years, 7 months ago
Hello, I''m trying to set class memory alignment using declspec(align()) but I get a compiler error saying error C2485: ''align'' : unrecognized extended attribute any help?
Advertisement
Post the code snippet.

How appropriate. You fight like a cow.
class __declspec(align(16)) CVector3
{
public: CVector3();
};
Ah, there we go. Rewrite it as:

__declspec(align(16)) class CVector3
{
public: CVector3();
};


How appropriate. You fight like a cow.
still get compiler errors :/

This topic is closed to new replies.

Advertisement