将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;