Skip to content

Instantly share code, notes, and snippets.

View aligusnet's full-sized avatar

Alexander Ignatyev aligusnet

View GitHub Profile
@aligusnet
aligusnet / logical_cpp.cpp
Last active May 31, 2020 10:27
Logical C++
// alignas C++11, C++14
class alignas(32) Foo {...}
// address &foo is aligned to 32-byes boundary
Foo foo{};
// it is not guarantee that address pFoo is aligned to 32-byes boundary
Foo* pFoo = new Foo();