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 {
19  inline std::locale nowide_filesystem()
20  {
21  std::locale tmp = std::locale(std::locale(), new boost::nowide::utf8_codecvt<wchar_t>());
22  return boost::filesystem::path::imbue(tmp);
23  }
24 } // namespace nowide
25 } // namespace boost
26 
27 #endif
Definition: utf8_codecvt.hpp:54
std::locale nowide_filesystem()
Definition: filesystem.hpp:19