C++ 类型的实参与 类型的形参不兼容( const wchar_t* and wchar_t*)

const wchar_t* ip = { L"127.0.0.1" };
const_cast<wchar_t *>(ip)
//使用const_cast去除const即可

 

posted @ 2022-08-25 13:32  过往云烟吧  阅读(224)  评论(0)    收藏  举报