argument type const char* can pass string, buf why const wchar* can not pass wstring
riki via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Dec 26 19:34:18 PST 2015
void ccf(const char* str){}
void cwf(const wchar* str){}
void main()
{
ccf("aaa"); //ok
cwf("xxx"w); // error and why ?
}
More information about the Digitalmars-d-learn
mailing list