Why does the following code NOT give an error, nor any type of a warning about an implicit conversion?
std::wstring str = L"hi";
if(str[0] == 'h')
cout<<"strange"<<endl;
The proper normal code is:
std::wstring str = L"hi";
if(str[0] == L'h')
cout<<"strange"<<endl;
Compiler: visual studio 2005
Warning level: level 4 (highest)