I'm using a basic_string<wchar_t> type and need to convert it into a jstring to pass through a JNI layer. I'm wondering what the best way to do that is. I have a function that can give me a std::string from my basic_string<wchar_t> type, so an answer to that would also be cool.
Cheers.
std::basic_string<wchar_t>is typedef'ed tostd::wstring.