What is the difference between typedef std :: basic_string <uint_32> and std :: basic_string <wchar_t> WString;

I need to decide how to handle wchar, which is not supported in Android Cross compilar NDK. I am currently doing typedef std::basic_string<wchar_t> WString; but I saw someone else typedef using typedef std::basic_string<uint_32> . I need to know exactly what I should do when I encounter this problem described here http://www.crystax.net/trac/ndk/ticket/10 I use android-ndk-r7, not crystalax. I need specific advice on how to handle wchar_t and const wchar_t *. What should I convert to?

UPDATE: I tried converting using uint32_t as a template for basic_string, but it gives errors for the comparison operator, does not match for the operator == and operator = ambiguous overload. However, using wchar_t does not make sense, since android skipped this as 4 bytes.

+1
c ++ android-ndk jni
source share

No one has answered this question yet.

See similar questions:

one
Strcmp error comparing converted wide string

or similar:

3076
What are the differences between a pointer variable and a reference variable in C ++?
2101
What is the difference between #include <filename> and #include "filename"?
1239
What is the difference between const int *, const int * const and int const *?
826
The difference between private, public and protected inheritance
787
What is the difference between "typedef" and "use" in C ++ 11?
783
What is the difference between g ++ and gcc?
707
Difference between 'struct' and 'typedef struct' in C ++?
651
std :: wstring VS std :: string
one
Strcmp error comparing converted wide string
one
Android NDK is a CrystalaX method for wchar support?

All Articles