error: implicit instantiation of undefined template 'std::codecvt<unsigned char, char, mbstate_t>'
帅天 谭
6
Reputation points
I want to define a byte stream with C++。Therefore I used basic_ifstream<unsigned char> as the container。
It works good in Visual Studio
'byte' means 'unsigned char'
However, when I migrate the code to Android Studio, it outputs the following error:
error: implicit instantiation of undefined template 'std::codecvt<unsigned char, char, mbstate_t>'
Offcourse I can use ifstream instead of basic_stream<unsigned char>, but I really want to know how to resolve the error above.
Can anyone help me? Thank you very much!
Developer technologies | C++
3,973 questions
Sign in to answer