Cross-platform primitive data types in C++

前端 未结 7 2470
鱼传尺愫
鱼传尺愫 2021-02-14 07:04

Unlike Java or C#, primitive data types in C++ can vary in size depending on the platform. For example, int is not guaranteed to be a 32-bit integer. Various compi

7条回答
  •  感情败类
    2021-02-14 07:31

    I found this header particularly useful: BOOST cstdint

    Usually better than inventing own wheel (which incurs the maintenance and testing).

提交回复
热议问题