【发布时间】:2015-07-06 16:58:23
【问题描述】:
在将 VC++ 6.0 开发的代码迁移到 Visual Studio 2008 时,我在代码的下面一行中收到了这个警告。
const int const CImportContext::PACKETSIZE = 4096;
我知道如何修复指针
static const int const * PACKETSIZE; // C4114
static const int * const PACKETSIZE; // Correct
但我的问题是如何解决这个警告,如果它像下面的警告(没有指针),
static const int const PACKETSIZE;
【问题讨论】:
标签: c++ visual-c++ constants