auto alignValue = 16;
class Foo
{
public:
Foo();
~Foo();
private:
MyMatrix matrix;
}
typedef aligned_storage< sizeof( Foo ), alignValue >::type FooAligned
But not this:
auto alignValue = 16;
class Foo
{
public:
Foo();
~Foo();
void doSomething();
private:
MyMatrix matrix;
}
typedef aligned_storage< sizeof( Foo ), alignValue >::type FooAligned
Just asking.... 'Cause new and delete overloading is so annoying and so '90ish