This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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(); |
OlderNewer