You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case of Windows and a file name with non-standard characters I cannot rely on read_json(std::string const&, ...).
I therefore use this workaround: boost::filesystem::path const filename(L"Some foreign language file name"); boost::filesystem::ifstream ifs(filename); read_json(ifs, ...);
In case of an error, the exception thrown does not contain the filename and I have to construct a message of my own.
I would like to request these additions:
read_json(boost::filesystem::path const&, ...)
read_json(std::wstring const&, ...)
The text was updated successfully, but these errors were encountered:
There are currently two signatures available:
read_json(std::string const&, ...)
read_json(std::basic_istream<...> const&, ...)
In case of Windows and a file name with non-standard characters I cannot rely on
read_json(std::string const&, ...)
.I therefore use this workaround:
boost::filesystem::path const filename(L"Some foreign language file name");
boost::filesystem::ifstream ifs(filename);
read_json(ifs, ...);
In case of an error, the exception thrown does not contain the filename and I have to construct a message of my own.
I would like to request these additions:
read_json(boost::filesystem::path const&, ...)
read_json(std::wstring const&, ...)
The text was updated successfully, but these errors were encountered: