这个问题在这里已经有了答案:
warning C4114: same type qualifier used more than once
(2 个回答)
1年前关闭。
我收到警告:多次使用相同类型的限定符
使用这些原型(prototype):
static std::wstring joinWS(const vector<wchar_t*> Vect, const const char* delimiter);
static std::wstring joinWS(const vector<char*> Vect, const const char* delimiter);
wchar_t* 和 char* 是不同的。有办法解决吗?
谢谢 !
最佳答案
const
是类型限定符,你不应该像那样在同一个地方使用它两次。
"It’s like, how much more const could this be? And the answer is none. None more const." -- Bjarne Stroustrup
关于c++警告C4114相同类型的限定符使用了不止一次,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63846099/