#include <codecvt>
Since codecvt deprecated in C++17, I need solid way to convert wstring to basic string.
#include <codecvt>
Since codecvt deprecated in C++17, I need solid way to convert wstring to basic string.
"Deprecated" does not mean "removed". It means that it may be subject to removal in a future C++ standard. Feel free to use it for the time being. C++20, for example, still has <codecvt> around. And the standard's committee seems to have decided that they're only going to proceed with removal once they have something to replace it.