Data alignment in C++, standard and portability

后端 未结 4 1263
广开言路
广开言路 2020-12-20 22:13

I want to construct an object of class T by using ::operator new(size_t) and placement new.

To \"extend\" the size of ch

4条回答
  •  离开以前
    2020-12-20 22:54

    You can influence the alignment in memory with the pragma pack declarations, just Google for it.

提交回复
热议问题