我正在移植一些代码,并遇到了这个

class Someclass
{
   void Restart (IN TIMEX_STAMP rtMinTime = 0I64);
};

这段代码在Visual Studio中工作正常,但是在Mingw GCC中,我得到了错误
error: expected ')' before ';' token|
error: unable to find numeric literal operator 'operator"" I64'|

关于如何解决此代码的任何建议?

最佳答案

文字后缀I64Visual C++ extension that specifies a 64-bit signed integer type。尽管0LL在技术上被指定为至少具有64位,但是 long long 在标准C++中可能足够接近。如果您偏执狂,总会有 std::int64_t{0}

10-07 12:03