Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
boost.format を使用してワイド (Unicode) 文字列を返す方法はありますか?
次のようなことができるようになりたいです。
wcout << boost::format(L"...") % ...
と
wstring s = boost::str(boost::format(L"...") % ...)
これは可能ですか?
format_fwd.hpp次の typedef が含まれます。
format_fwd.hpp
typedef basic_format<wchar_t > wformat;
これで始められると思います。これはここで機能します:
std::wcout << boost::wformat(L"...") % ...
を使ったboost::str作品もwformat。
boost::str
wformat