How to do portable 64 bit arithmetic, without compiler warnings

后端 未结 7 1021
情歌与酒
情歌与酒 2021-02-12 22:38

I occasionally use 64 bit arithmetic in an open source C++ library of mine. I discovered that long long serves my purpose quite nicely. Even some 10 year old solari

7条回答
  •  后悔当初
    2021-02-12 23:30

    In GCC use the -Wno-long-long compiler option to suppress that particular warning.

    You could also use -std=C++0x, but will probably reduce portability further.

提交回复
热议问题