How to do portable 64 bit arithmetic, without compiler warnings

后端 未结 7 1012
情歌与酒
情歌与酒 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:16

    You could replace your use of long long with one of the many C++ bigint libraries. I'm sure some of them avoid this compiler error. Personally, I'd rather stick with the error.

提交回复
热议问题