Boost.Nowide
filesystem.hpp
1 //
2 // Copyright (c) 2012 Artyom Beilis (Tonkikh)
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See
5 // accompanying file LICENSE or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 //
8 #ifndef BOOST_NOWIDE_INTEGRATION_FILESYSTEM_HPP_INCLUDED
9 #define BOOST_NOWIDE_INTEGRATION_FILESYSTEM_HPP_INCLUDED
10 
11 #include <boost/nowide/utf8_codecvt.hpp>
12 #include <boost/filesystem/path.hpp>
13 
14 namespace boost {
15 namespace nowide {
21  inline std::locale nowide_filesystem()
22  {
23  std::locale tmp = std::locale(std::locale(), new boost::nowide::utf8_codecvt<wchar_t>());
24  return boost::filesystem::path::imbue(tmp);
25  }
26 } // namespace nowide
27 } // namespace boost
28 
29 #endif
Definition: utf8_codecvt.hpp:50
std::locale nowide_filesystem()
Definition: filesystem.hpp:21