
From: Jookia <166291@gmail.com>
After reading the documentation the only question I really have is if there's a way to have it as a drop-in replacement. Surely 'using namespace boost::nowide' would conflict with STL definitions.
You just should use explicit namespace or shorten it namespace nw = boost::nowide; and then nw::fstream etc.
I can see why this may not be desirable as it can lead to weird bugs, like the ineffectiveness of sync_with_stdio.
See, the idea is to keep the API as familiar as possible such that simple mechanical conversion can be done, similarly to boost::shared_ptr -> std::shared_ptr, boost::function -> std::function etc.
Besides that, I think this is a great library and I still find it a little odd why only in 2012 we're getting awesome stuff like this in Boost.
Yes, boost is still several huge steps behind other toolkits in all Unicode related. And Windows Unicode approach does not make it simpler
On 14/09/12 19:15, Artyom Beilis wrote:
Boost.Nowide is a library implemented by Artyom Beilis that make cross platform Unicode aware programming easier.
The library provides an implementation of standard C and C++ library functions, such that their inputs are UTF-8 aware on Windows without requiring to use Wide API.
Documentation: http://cppcms.com/files/nowide/html/ Downloads: http://cppcms.com/files/nowide/
Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/