什么取代了 C++17 中的 std::codecvt_utf8 或者我如何将 int 转换为 u32 字符串?

Neo*_*ana 5 c++17

我在cppreference.com上注意到<codecvt>C++17 中不推荐使用标题中的此内容和相关内容。

那么支持的替代方案是什么?

我正在尝试将 an 转换int为 astd::u32srting以正确支持 unicode。我打算在使用时std::to_stringstd::to_wstring之前进行转换,std::wstring_convert但注意到它已被弃用。我宁愿使用正确的最新标准。